Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008209/0.0008209, allocations: 84.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007888/0.0007888, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8896/0.8896, allocations: 177 MB / 204.1 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.767e-06/3.767e-06, allocations: 4 kB / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.063e-05/3.439e-05, allocations: 6.844 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.002359/0.002393, allocations: 1.575 MB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007262/0.00312, allocations: 0.5025 MB / 326.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.909e-05/0.003219, allocations: 3.938 kB / 326.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.067e-05/0.003269, allocations: 3.938 kB / 326.6 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.003431, allocations: 23.84 kB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.003777, allocations: 47.83 kB / 326.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.003899, allocations: 51.72 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.004023, allocations: 16.17 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.004169, allocations: 31.91 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.641e-05/0.004225, allocations: 11.98 kB / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.004248, allocations: 7.984 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.933e-05/0.004297, allocations: 8 kB / 326.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.501e-05/0.004362, allocations: 19.92 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.503e-05/0.004387, allocations: 7.938 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.004564, allocations: 59.73 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.004568, allocations: 0 / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.004571, allocations: 4 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.004577, allocations: 0 / 326.9 MB, free: 13.54 MB / 298.7 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.0004656/0.005043, allocations: 305.9 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.005086, allocations: 19.98 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.492e-05/0.005121, allocations: 34.69 kB / 327.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.005237, allocations: 16.88 kB / 327.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.005444, allocations: 141.6 kB / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-06/0.005452, allocations: 384 / 327.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.005463, allocations: 8.375 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002197/0.005682, allocations: 109.6 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.00569, allocations: 192 / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.005699, allocations: 3.938 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.005704, allocations: 0 / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.329e-05/0.005747, allocations: 23.92 kB / 327.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002643/0.006011, allocations: 224.9 kB / 327.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.566e-05/0.006077, allocations: 49.09 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.862e-05/0.006115, allocations: 25.77 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.006135, allocations: 4 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.006156, allocations: 30.56 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.383e-06/0.006157, allocations: 0 / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001944/0.006352, allocations: 69.56 kB / 327.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.006405, allocations: 81.05 kB / 328 MB, free: 12.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.006514, allocations: 148.5 kB / 328.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.006525, allocations: 25.7 kB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.772e-05/0.006573, allocations: 92.12 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.462e-05/0.006587, allocations: 4.203 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.006619, allocations: 17.72 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.826e-05/0.006718, allocations: 318.8 kB / 328.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.709e-05/0.006745, allocations: 8 kB / 328.6 MB, free: 11.6 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.77e-05/0.006762, allocations: 7.938 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.791e-05/0.00681, allocations: 24.84 kB / 328.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.006814, allocations: 0 / 328.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.516e-05/0.006889, allocations: 57.56 kB / 328.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.006906, allocations: 8.094 kB / 328.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.006912, allocations: 3.938 kB / 328.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.006928, allocations: 0 / 328.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.337e-05/0.006991, allocations: 4 kB / 328.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.006997, allocations: 0 / 328.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.234e-05/0.007019, allocations: 4 kB / 328.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.007026, allocations: 0 / 328.7 MB, free: 11.48 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 6.256e-05/0.007089, allocations: 117.8 kB / 328.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.007124, allocations: 45.53 kB / 328.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.007152, allocations: 23.78 kB / 328.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.007154, allocations: 0 / 328.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.007158, allocations: 0 / 328.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.00716, allocations: 0 / 328.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001105/0.007271, allocations: 140.6 kB / 329 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.007272, allocations: 0 / 329 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.636e-05/0.007299, allocations: 7.984 kB / 329 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.007301, allocations: 0 / 329 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.007311, allocations: 8 kB / 329 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.524e-06/0.007313, allocations: 3.984 kB / 329 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.007314, allocations: 0 / 329 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.007425, allocations: 172.2 kB / 329.2 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.927e-05/0.007455, allocations: 11.94 kB / 329.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.007468, allocations: 8 kB / 329.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.086e-05/0.007499, allocations: 3.984 kB / 329.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.613e-05/0.007525, allocations: 0 / 329.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.007529, allocations: 4 kB / 329.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.961e-05/0.007578, allocations: 107.2 kB / 329.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007579, allocations: 0 / 329.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001353/0.007714, allocations: 4 kB / 329.3 MB, free: 10.77 MB / 298.7 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.0003272/0.008041, allocations: 0.7003 MB / 330 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.794e-05/0.008129, allocations: 19.92 kB / 330.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.008131, allocations: 0 / 330.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.956e-05/0.008151, allocations: 12 kB / 330.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.008414, allocations: 20.02 kB / 330.1 MB, free: 9.988 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008859/0.0093, allocations: 1.298 MB / 331.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.426e-05/0.009354, allocations: 82.52 kB / 331.5 MB, free: 8.504 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.923e-05/0.009383, allocations: 7.984 kB / 331.5 MB, free: 8.496 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.009424, allocations: 12.5 kB / 331.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of SimCode: time 8.31e-07/0.009424, allocations: 0 / 331.5 MB, free: 8.484 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.02486, allocations: 2.231 MB / 333.7 MB, free: 6.348 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.628/6.653, allocations: 2.75 kB / 333.7 MB, free: 6.348 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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: 8.291787115857005]