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.001418/0.001418, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.00148/0.00148, allocations: 206.8 kB / 23.73 MB, free: 4.379 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.397/1.397, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.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 0.00143/0.00143, allocations: 47.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.247, allocations: 53.36 MB / 431.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002595/0.2496, allocations: 1.452 MB / 432.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001745/0.2497, allocations: 27.91 kB / 432.6 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.043e-05/0.2498, allocations: 4 kB / 432.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.017e-05/0.2498, allocations: 3.938 kB / 432.6 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.364e-05/0.2499, allocations: 7.875 kB / 432.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.2501, allocations: 31.91 kB / 432.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.029e-05/0.2502, allocations: 27.92 kB / 432.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.843e-05/0.2503, allocations: 4 kB / 432.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.191e-05/0.2503, allocations: 19.92 kB / 432.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.879e-05/0.2504, allocations: 11.92 kB / 432.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.2504, allocations: 4 kB / 432.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.002e-05/0.2504, allocations: 4 kB / 432.7 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.898e-05/0.2504, allocations: 7.984 kB / 432.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.053e-05/0.2504, allocations: 7.938 kB / 432.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.171e-05/0.2505, allocations: 33.58 kB / 432.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2505, allocations: 0 / 432.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2505, allocations: 4 kB / 432.7 MB, free: 5.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.2505, allocations: 0 / 432.7 MB, free: 5.043 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003984/0.2509, allocations: 270.2 kB / 433 MB, free: 4.746 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.251, allocations: 8.031 kB / 433 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.689e-05/0.251, allocations: 42.73 kB / 433 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.459e-05/0.251, allocations: 4.891 kB / 433 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.2512, allocations: 126.4 kB / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.901e-05/0.2513, allocations: 384 / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.2513, allocations: 4.375 kB / 433.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.2516, allocations: 119.9 kB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.2516, allocations: 3.938 kB / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.2516, allocations: 0 / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2516, allocations: 0 / 433.3 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.2517, allocations: 27.97 kB / 433.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.2519, allocations: 128.7 kB / 433.4 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001633/0.252, allocations: 54.48 kB / 433.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.669e-05/0.2521, allocations: 28.91 kB / 433.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.2521, allocations: 4 kB / 433.5 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.2522, allocations: 34.56 kB / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.2522, allocations: 0 / 433.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002696/0.2524, allocations: 81.59 kB / 433.6 MB, free: 3.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.2525, allocations: 55.34 kB / 433.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.783e-05/0.2526, allocations: 109.8 kB / 433.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.2526, allocations: 29.7 kB / 433.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.122e-05/0.2526, allocations: 80.14 kB / 433.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.2526, allocations: 0 / 433.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.2527, allocations: 21.7 kB / 433.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.2528, allocations: 318.8 kB / 434.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.093e-05/0.2528, allocations: 0 / 434.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.442e-05/0.2529, allocations: 43.36 kB / 434.3 MB, free: 3.273 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.036e-05/0.2529, allocations: 39.69 kB / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2529, allocations: 0 / 434.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.875e-05/0.253, allocations: 65.58 kB / 434.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.253, allocations: 7.938 kB / 434.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.253, allocations: 8.125 kB / 434.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.253, allocations: 4 kB / 434.4 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.127e-05/0.2531, allocations: 11.94 kB / 434.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2531, allocations: 0 / 434.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.824e-05/0.2531, allocations: 0 / 434.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.2531, allocations: 4 kB / 434.4 MB, free: 3.117 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: 5 ($CLKPRE.step.counter,step.counter,step.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (step.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.205e-05/0.2532, allocations: 117.8 kB / 434.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001462/0.2534, allocations: 65.56 kB / 434.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.198e-05/0.2534, allocations: 12 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.2534, allocations: 0 / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2534, allocations: 4 kB / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.2534, allocations: 0 / 434.6 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.008e-05/0.2535, allocations: 128.7 kB / 434.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2535, allocations: 0 / 434.7 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.725e-05/0.2535, allocations: 11.98 kB / 434.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2535, allocations: 3.938 kB / 434.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.2536, allocations: 4 kB / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2536, allocations: 0 / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2536, allocations: 0 / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.2537, allocations: 85.11 kB / 434.8 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.142e-05/0.2537, allocations: 7.953 kB / 434.9 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.2538, allocations: 11.92 kB / 434.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.56e-05/0.2538, allocations: 4 kB / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.394e-06/0.2538, allocations: 0 / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.098e-06/0.2538, allocations: 0 / 434.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.279e-05/0.2539, allocations: 83.28 kB / 435 MB, free: 2.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2539, allocations: 0 / 435 MB, free: 2.504 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001903/0.254, allocations: 4 kB / 435 MB, free: 2.5 MB / 334.1 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.0005411/0.2546, allocations: 0.6594 MB / 435.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.2547, allocations: 36.16 kB / 435.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2547, allocations: 0 / 435.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.2547, allocations: 3.938 kB / 435.7 MB, free: 1.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.255, allocations: 24.02 kB / 435.7 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.256, allocations: 1.186 MB / 436.9 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.159e-05/0.2561, allocations: 63.34 kB / 436.9 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.926e-05/0.2561, allocations: 0 / 436.9 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.2561, allocations: 11.5 kB / 436.9 MB, free: 380 kB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2561, allocations: 4 kB / 436.9 MB, free: 376 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.2834, allocations: 1.916 MB / 438.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.58, allocations: 2.953 kB / 438.9 MB, free: 14.59 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/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: 12.876655184983974]