Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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.001856/0.001856, allocations: 121 kB / 18.5 MB, free: 4.562 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.002194/0.002194, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.511/1.511, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 43.94 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1215, allocations: 53.33 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003385/0.1249, allocations: 1.576 MB / 428.6 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.126, allocations: 0.5415 MB / 429.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.904e-05/0.1261, allocations: 3.938 kB / 429.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.75e-05/0.1262, allocations: 7.938 kB / 429.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.1263, allocations: 15.86 kB / 429.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.1266, allocations: 59.81 kB / 429.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000125/0.1267, allocations: 51.78 kB / 429.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.1268, allocations: 8.188 kB / 429.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.127, allocations: 27.92 kB / 429.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.944e-05/0.127, allocations: 27.84 kB / 429.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.403e-05/0.127, allocations: 0 / 429.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.3e-05/0.1271, allocations: 8 kB / 429.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.757e-05/0.1271, allocations: 19.92 kB / 429.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.898e-05/0.1272, allocations: 23.81 kB / 429.4 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001646/0.1273, allocations: 59.67 kB / 429.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1273, allocations: 0 / 429.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1273, allocations: 3.938 kB / 429.4 MB, free: 2.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1274, allocations: 4 kB / 429.4 MB, free: 2.34 MB / 350.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.0005718/0.1279, allocations: 383 kB / 429.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.128, allocations: 12.03 kB / 429.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.046e-05/0.128, allocations: 192 / 429.8 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.175e-05/0.128, allocations: 34.75 kB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.1282, allocations: 20.88 kB / 429.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002888/0.1285, allocations: 200.2 kB / 430.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1285, allocations: 384 / 430.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.1285, allocations: 12.12 kB / 430.1 MB, free: 1.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.1288, allocations: 105 kB / 430.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1288, allocations: 0 / 430.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.1288, allocations: 3.938 kB / 430.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.1288, allocations: 0 / 430.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.437e-05/0.1289, allocations: 19.98 kB / 430.2 MB, free: 1.453 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003499/0.1292, allocations: 265.8 kB / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.089e-05/0.1293, allocations: 45.14 kB / 430.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.506e-05/0.1294, allocations: 21.77 kB / 430.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.1294, allocations: 0 / 430.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.1294, allocations: 38.56 kB / 430.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.1294, allocations: 3.938 kB / 430.6 MB, free: 1 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002865/0.1297, allocations: 69.56 kB / 430.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.1298, allocations: 85.05 kB / 430.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.13, allocations: 139.4 kB / 430.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.13, allocations: 29.64 kB / 430.9 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.4e-05/0.1301, allocations: 92.39 kB / 431 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.1301, allocations: 7.953 kB / 431 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.908e-05/0.1301, allocations: 13.72 kB / 431 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.1303, allocations: 322.8 kB / 431.3 MB, free: 204 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.595e-05/0.1304, allocations: 4 kB / 431.3 MB, free: 200 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.136e-05/0.1304, allocations: 21.7 kB / 431.3 MB, free: 172 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.34e-05/0.1305, allocations: 33.77 kB / 431.4 MB, free: 132 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1305, allocations: 0 / 431.4 MB, free: 132 kB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001372/0.1307, allocations: 57.58 kB / 431.4 MB, free: 68 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.1307, allocations: 4 kB / 431.4 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.1307, allocations: 0 / 431.4 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.1307, allocations: 4 kB / 431.4 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.862e-05/0.1308, allocations: 7.984 kB / 431.4 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.1308, allocations: 4.062 kB / 431.4 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.624e-05/0.1309, allocations: 0 / 431.4 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.1309, allocations: 4 kB / 431.5 MB, free: 44 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001589/0.131, allocations: 121.8 kB / 431.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.434e-05/0.1311, allocations: 45.59 kB / 431.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.775e-05/0.1312, allocations: 3.875 kB / 431.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1312, allocations: 4 kB / 431.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1312, allocations: 0 / 431.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1312, allocations: 8.016 kB / 431.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002419/0.1314, allocations: 173.6 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1314, allocations: 4 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.572e-05/0.1315, allocations: 4 kB / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1315, allocations: 0 / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.1315, allocations: 0 / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1315, allocations: 0 / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1315, allocations: 0 / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.1317, allocations: 172.2 kB / 432 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.1319, allocations: 89.05 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.143e-05/0.1319, allocations: 7.938 kB / 432.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.752e-05/0.1319, allocations: 4 kB / 432.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/0.132, allocations: 0 / 432.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-06/0.132, allocations: 4 kB / 432.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001069/0.1321, allocations: 108.3 kB / 432.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1321, allocations: 0 / 432.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1323, allocations: 8.031 kB / 432.2 MB, free: 15.19 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0006134/0.1329, allocations: 0.6936 MB / 432.9 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001715/0.1331, allocations: 27.95 kB / 432.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/0.1331, allocations: 4 kB / 432.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.453e-05/0.1332, allocations: 7.984 kB / 432.9 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000414/0.1336, allocations: 18.16 kB / 432.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.1352, allocations: 1.333 MB / 434.3 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.1355, allocations: 0.6846 MB / 435 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.656e-05/0.1356, allocations: 4 kB / 435 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.1356, allocations: 19.42 kB / 435 MB, free: 12.26 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1356, allocations: 0 / 435 MB, free: 12.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/0.1539, allocations: 1.603 MB / 436.6 MB, free: 10.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.206/8.36, allocations: 10.19 kB / 436.6 MB, free: 10.79 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,time [Calling sys.exit(0), Time elapsed: 11.165896113961935]