Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 216.5 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.63/1.63, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 51.91 kB / 377.8 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3672, allocations: 53.36 MB / 431.1 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.004983/0.3722, allocations: 1.606 MB / 432.8 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001708/0.3739, allocations: 0.5453 MB / 433.3 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.374, allocations: 4 kB / 433.3 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.733e-05/0.3741, allocations: 15.8 kB / 433.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.3743, allocations: 11.94 kB / 433.3 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004971/0.3748, allocations: 63.05 kB / 433.4 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.3749, allocations: 47.86 kB / 433.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.3751, allocations: 12.17 kB / 433.4 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.3752, allocations: 39.78 kB / 433.5 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.637e-05/0.3753, allocations: 19.86 kB / 433.5 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.76e-05/0.3754, allocations: 4 kB / 433.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.697e-05/0.3754, allocations: 12 kB / 433.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.61e-05/0.3755, allocations: 11.98 kB / 433.5 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.235e-05/0.3755, allocations: 27.75 kB / 433.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002217/0.3757, allocations: 61.7 kB / 433.6 MB, free: 4.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3757, allocations: 3.938 kB / 433.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3757, allocations: 0 / 433.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3758, allocations: 0 / 433.6 MB, free: 4.496 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006644/0.3764, allocations: 305.9 kB / 433.9 MB, free: 4.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3765, allocations: 12.03 kB / 433.9 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.266e-05/0.3765, allocations: 42.73 kB / 434 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.3767, allocations: 20.83 kB / 434 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.3771, allocations: 138.9 kB / 434.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.3771, allocations: 8.125 kB / 434.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.3771, allocations: 0 / 434.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004077/0.3775, allocations: 117.9 kB / 434.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.3775, allocations: 0 / 434.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3776, allocations: 3.984 kB / 434.3 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3776, allocations: 0 / 434.3 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001443/0.3777, allocations: 31.91 kB / 434.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004635/0.3782, allocations: 245.6 kB / 434.5 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.3783, allocations: 67.8 kB / 434.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.959e-05/0.3784, allocations: 34.62 kB / 434.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.3785, allocations: 0 / 434.6 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.966e-05/0.3785, allocations: 46.47 kB / 434.7 MB, free: 3.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.383e-06/0.3785, allocations: 3.938 kB / 434.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004073/0.3789, allocations: 81.56 kB / 434.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.379, allocations: 111.2 kB / 434.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.3792, allocations: 152.5 kB / 435 MB, free: 2.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/0.3793, allocations: 29.64 kB / 435 MB, free: 2.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.302e-05/0.3793, allocations: 92.14 kB / 435.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.3794, allocations: 0 / 435.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.184e-05/0.3794, allocations: 21.67 kB / 435.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.3796, allocations: 314.8 kB / 435.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.728e-05/0.3797, allocations: 19.98 kB / 435.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.398e-05/0.3797, allocations: 31.38 kB / 435.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.3799, allocations: 51.36 kB / 435.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3799, allocations: 0 / 435.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000223/0.3801, allocations: 65.61 kB / 435.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.3801, allocations: 8 kB / 435.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3802, allocations: 0 / 435.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.3802, allocations: 0 / 435.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.3803, allocations: 11.98 kB / 435.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.3803, allocations: 11.88 kB / 435.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.003e-05/0.3804, allocations: 8.125 kB / 435.7 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.3804, allocations: 4 kB / 435.7 MB, free: 2.176 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001349/0.3805, allocations: 121.8 kB / 435.8 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.3806, allocations: 49.61 kB / 435.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.925e-05/0.3807, allocations: 19.89 kB / 435.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3807, allocations: 4 kB / 435.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3807, allocations: 3.938 kB / 435.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.3807, allocations: 0 / 435.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.381, allocations: 148.8 kB / 436 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.381, allocations: 0 / 436 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.581e-05/0.3811, allocations: 11.98 kB / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.3811, allocations: 0 / 436 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.3811, allocations: 4 kB / 436 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.3811, allocations: 0 / 436 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3811, allocations: 3.938 kB / 436 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.3814, allocations: 177.1 kB / 436.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/0.3815, allocations: 23.88 kB / 436.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.3815, allocations: 3.938 kB / 436.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.3816, allocations: 4 kB / 436.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.3817, allocations: 3.938 kB / 436.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.3817, allocations: 7.984 kB / 436.2 MB, free: 1.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.3818, allocations: 108.8 kB / 436.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3818, allocations: 0 / 436.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004466/0.3823, allocations: 12 kB / 436.4 MB, free: 1.398 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007267/0.383, allocations: 0.7063 MB / 437.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001945/0.3832, allocations: 27.98 kB / 437.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.3832, allocations: 7.938 kB / 437.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.367e-05/0.3833, allocations: 11.98 kB / 437.1 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/0.3838, allocations: 28.08 kB / 437.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.3858, allocations: 1.407 MB / 438.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.3862, allocations: 0.6963 MB / 439.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.551e-05/0.3863, allocations: 7.984 kB / 439.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.041e-05/0.3863, allocations: 15.44 kB / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3863, allocations: 0 / 439.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.4149, allocations: 1.827 MB / 441.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.31, allocations: 12.5 kB / 441.1 MB, free: 12.63 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.039063599193469]