Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.0008004/0.0008004, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.00146/0.00146, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9127/0.9127, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.934e-06/1.934e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.254e-05, allocations: 13.31 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep): time 0.002069/0.002091, allocations: 1.458 MB / 326 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002276/0.002319, allocations: 99.62 kB / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.971e-05/0.002379, allocations: 0 / 326.1 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.85e-05/0.002407, allocations: 7.922 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.36e-05/0.002441, allocations: 7.938 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.002658, allocations: 28.72 kB / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.718e-05/0.002735, allocations: 23.94 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.236e-05/0.002828, allocations: 3.984 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.886e-05/0.002877, allocations: 23.91 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.81e-05/0.002915, allocations: 8 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.002937, allocations: 0 / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.677e-06/0.002946, allocations: 4 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.002964, allocations: 0 / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.161e-05/0.002996, allocations: 15.92 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.558e-05/0.003081, allocations: 27.95 kB / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.003084, allocations: 0 / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.003086, allocations: 0 / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.003091, allocations: 0 / 326.3 MB, free: 14.24 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003919/0.003483, allocations: 269.5 kB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.003524, allocations: 12.03 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.754e-05/0.003551, allocations: 34.73 kB / 326.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.104e-05/0.003572, allocations: 4.891 kB / 326.6 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001629/0.003735, allocations: 125.7 kB / 326.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.675e-06/0.003743, allocations: 384 / 326.7 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.003752, allocations: 8.375 kB / 326.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002199/0.003971, allocations: 107.9 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.76e-06/0.003977, allocations: 192 / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-06/0.003984, allocations: 384 / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.00399, allocations: 4.125 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.904e-05/0.004039, allocations: 19.98 kB / 326.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.188e-05/0.004131, allocations: 136.7 kB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.955e-05/0.00423, allocations: 50.48 kB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.533e-05/0.004266, allocations: 24.92 kB / 327 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.004282, allocations: 4 kB / 327.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.004322, allocations: 38.5 kB / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.32e-07/0.004322, allocations: 0 / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001437/0.004466, allocations: 69.61 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.0045, allocations: 55.34 kB / 327.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.181e-05/0.004552, allocations: 109.8 kB / 327.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.00456, allocations: 25.7 kB / 327.3 MB, free: 12.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.947e-05/0.004589, allocations: 88.14 kB / 327.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-06/0.004591, allocations: 0 / 327.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.62e-05/0.004608, allocations: 9.719 kB / 327.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.011e-05/0.004678, allocations: 318.8 kB / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.198e-06/0.004682, allocations: 0 / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.565e-06/0.004685, allocations: 0 / 327.8 MB, free: 12.56 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.771e-05/0.004702, allocations: 75.28 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.5e-05/0.004717, allocations: 75.28 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 3.077e-05/0.004748, allocations: 37.64 kB / 327.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.004773, allocations: 83.28 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.00479, allocations: 75.28 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-05/0.004827, allocations: 154.6 kB / 328.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.888e-05/0.004846, allocations: 83.16 kB / 328.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.05e-05/0.004877, allocations: 154.5 kB / 328.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.32e-05/0.00492, allocations: 83.66 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.004935, allocations: 75.28 kB / 328.6 MB, free: 11.67 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 (0): * Single equations (assignments): 0 * 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.899e-05/0.005004, allocations: 189.1 kB / 328.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.592e-05/0.00507, allocations: 61.62 kB / 328.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.718e-05/0.005098, allocations: 19.92 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.0051, allocations: 0 / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.005105, allocations: 7.938 kB / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.005108, allocations: 0 / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.633e-05/0.005164, allocations: 128.7 kB / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.005167, allocations: 0 / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.059e-05/0.005228, allocations: 8 kB / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.00523, allocations: 0 / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.005236, allocations: 0 / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.005239, allocations: 0 / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.00524, allocations: 3.938 kB / 329 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.415e-05/0.005314, allocations: 85.11 kB / 329.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-06/0.005322, allocations: 7.953 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.376e-06/0.00533, allocations: 0 / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.00534, allocations: 3.984 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-06/0.005344, allocations: 7.938 kB / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.005348, allocations: 0 / 329.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.693e-05/0.005375, allocations: 83.28 kB / 329.2 MB, free: 11 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.005375, allocations: 3.938 kB / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001511/0.005526, allocations: 4 kB / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * 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.0002558/0.005782, allocations: 0.6163 MB / 329.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.397e-05/0.005836, allocations: 15.98 kB / 329.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.005838, allocations: 0 / 329.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.01e-07/0.005839, allocations: 0 / 329.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001851/0.006024, allocations: 30.52 kB / 329.9 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008095/0.006834, allocations: 1.376 MB / 331.3 MB, free: 8.844 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.448e-05/0.006868, allocations: 63.34 kB / 331.3 MB, free: 8.762 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.929e-06/0.006878, allocations: 4 kB / 331.3 MB, free: 8.758 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.006911, allocations: 16.5 kB / 331.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.006912, allocations: 0 / 331.3 MB, free: 8.742 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.01979, allocations: 1.838 MB / 333.2 MB, free: 7.027 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.488/6.508, allocations: 0 / 333.2 MB, free: 7.027 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TimeBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.172024608589709]