Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.0008481/0.0008481, 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.0009968/0.0009968, 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.869/0.869, allocations: 177.1 MB / 204.3 MB, free: 5.715 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.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/2.015e-05, allocations: 4.672 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.001969/0.001989, allocations: 1.45 MB / 326 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002021/0.002191, allocations: 31.91 kB / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.002267, allocations: 0 / 326 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.186e-05/0.002299, allocations: 3.938 kB / 326 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.284e-05/0.002342, allocations: 11.88 kB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.002598, allocations: 19.97 kB / 326.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.208e-05/0.00268, allocations: 31.92 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.154e-05/0.002771, allocations: 4 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.351e-05/0.002815, allocations: 15.98 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.64e-05/0.002851, allocations: 15.91 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.002872, allocations: 4 kB / 326.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.684e-06/0.00288, allocations: 8 kB / 326.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.632e-05/0.002896, allocations: 4 kB / 326.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.315e-05/0.002919, allocations: 7.984 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.692e-05/0.003006, allocations: 35.83 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.003008, allocations: 0 / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.003009, allocations: 0 / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.003013, allocations: 0 / 326.2 MB, free: 14.29 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.0003238/0.003337, allocations: 273.2 kB / 326.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.003376, allocations: 8.031 kB / 326.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.84e-05/0.003404, allocations: 34.75 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.315e-05/0.003427, allocations: 8.891 kB / 326.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.003583, allocations: 125.7 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.746e-05/0.0036, allocations: 384 / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.003609, allocations: 4.375 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002426/0.003851, allocations: 123.8 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.003857, allocations: 192 / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.003865, allocations: 4.375 kB / 326.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.003871, allocations: 8.062 kB / 326.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.418e-05/0.003935, allocations: 27.97 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001031/0.004039, allocations: 128.7 kB / 326.9 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003511/0.00439, allocations: 54.48 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.664e-05/0.004436, allocations: 24.92 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.061e-05/0.004447, allocations: 4 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.88e-05/0.004466, allocations: 34.5 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.004467, allocations: 0 / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001812/0.004648, allocations: 77.66 kB / 327.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.004693, allocations: 63.28 kB / 327.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.411e-05/0.004748, allocations: 105.8 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.706e-06/0.004756, allocations: 29.7 kB / 327.3 MB, free: 13 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.726e-05/0.004783, allocations: 88.14 kB / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.208e-06/0.004793, allocations: 0 / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.123e-05/0.004814, allocations: 13.72 kB / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.94e-05/0.004883, allocations: 314.8 kB / 327.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.004894, allocations: 8 kB / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-06/0.004899, allocations: 0 / 327.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.965e-05/0.004919, allocations: 8.859 kB / 327.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.00492, allocations: 0 / 327.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 3.997e-05/0.00496, allocations: 45.69 kB / 327.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.004972, allocations: 8 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.004976, allocations: 4 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.004987, allocations: 3.984 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.127e-05/0.005028, allocations: 3.938 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.005034, allocations: 4 kB / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.645e-06/0.005041, allocations: 0 / 327.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-06/0.005045, allocations: 0 / 327.8 MB, free: 12.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: 2 ($CLKPRE.step.counter,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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 5.47e-05/0.0051, allocations: 113.8 kB / 327.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.288e-05/0.005173, allocations: 57.92 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.768e-05/0.005191, allocations: 11.94 kB / 328 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.005193, allocations: 8.234 kB / 328 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.005199, allocations: 7.938 kB / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.005201, allocations: 0 / 328 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.395e-05/0.005255, allocations: 132.7 kB / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.005256, allocations: 0 / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.063e-05/0.005287, allocations: 15.92 kB / 328.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.005288, allocations: 0 / 328.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.005293, allocations: 0 / 328.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.005294, allocations: 0 / 328.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.005296, allocations: 3.938 kB / 328.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.103e-05/0.005387, allocations: 97.05 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.039e-06/0.005392, allocations: 4 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.005402, allocations: 0 / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.264e-05/0.005415, allocations: 4 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-06/0.005418, allocations: 3.938 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.005422, allocations: 4 kB / 328.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.586e-05/0.005448, allocations: 87.27 kB / 328.4 MB, free: 11.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005448, allocations: 3.938 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001182/0.005566, allocations: 4 kB / 328.4 MB, free: 11.85 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: 4 (assignClock1.u,assignClock1.y,step.y,step.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * 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.0003103/0.005876, allocations: 0.6436 MB / 329 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.797e-05/0.005954, allocations: 24.05 kB / 329 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.005956, allocations: 4 kB / 329 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.005956, allocations: 0 / 329 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002044/0.00616, allocations: 27.86 kB / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006248/0.006785, allocations: 1.115 MB / 330.2 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.859e-05/0.006824, allocations: 63.34 kB / 330.2 MB, free: 9.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.005e-05/0.006844, allocations: 4 kB / 330.2 MB, free: 9.836 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.831e-05/0.006882, allocations: 16.58 kB / 330.3 MB, free: 9.82 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.006883, allocations: 4 kB / 330.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01542/0.02231, allocations: 2 MB / 332.3 MB, free: 7.938 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.478/6.501, allocations: 8 kB / 332.3 MB, free: 7.93 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.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.121599962003529]