Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 103.9 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 188.9 kB / 24.49 MB, free: 3.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.7 MB / 253.3 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 51.92 kB / 371.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2555, allocations: 52.18 MB / 423.3 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep): time 0.002735/0.2582, allocations: 1.439 MB / 424.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001989/0.2584, allocations: 35.84 kB / 424.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.234e-05/0.2585, allocations: 0 / 424.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.89e-05/0.2585, allocations: 3.938 kB / 424.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.751e-05/0.2586, allocations: 4 kB / 424.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002601/0.2588, allocations: 26.16 kB / 424.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.892e-05/0.2589, allocations: 31.92 kB / 424.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.087e-05/0.259, allocations: 4 kB / 424.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.128e-05/0.259, allocations: 15.92 kB / 424.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.292e-05/0.2591, allocations: 15.92 kB / 424.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.661e-05/0.2591, allocations: 4 kB / 424.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-06/0.2591, allocations: 0 / 424.9 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.721e-05/0.2591, allocations: 11.98 kB / 424.9 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.004e-05/0.2592, allocations: 7.938 kB / 424.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.403e-05/0.2593, allocations: 30 kB / 425 MB, free: 12.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2593, allocations: 7.938 kB / 425 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2593, allocations: 0 / 425 MB, free: 12.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.738e-06/0.2593, allocations: 0 / 425 MB, free: 12.8 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.0004259/0.2597, allocations: 274.2 kB / 425.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.2597, allocations: 12.03 kB / 425.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.529e-05/0.2597, allocations: 192 / 425.3 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.987e-05/0.2598, allocations: 34.75 kB / 425.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.564e-05/0.2598, allocations: 4.938 kB / 425.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001914/0.26, allocations: 122.4 kB / 425.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.26, allocations: 384 / 425.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.26, allocations: 16.31 kB / 425.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003529/0.2604, allocations: 127.5 kB / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.2604, allocations: 0 / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.2604, allocations: 4 kB / 425.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.2604, allocations: 0 / 425.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.2605, allocations: 23.95 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.2607, allocations: 128.8 kB / 425.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001611/0.2608, allocations: 54.48 kB / 425.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.998e-05/0.2609, allocations: 28.92 kB / 425.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.2609, allocations: 4 kB / 425.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.2609, allocations: 38.5 kB / 425.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.261, allocations: 0 / 425.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002817/0.2612, allocations: 81.61 kB / 425.9 MB, free: 11.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.513e-05/0.2613, allocations: 51.41 kB / 426 MB, free: 11.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.829e-05/0.2614, allocations: 105.8 kB / 426.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.2614, allocations: 29.64 kB / 426.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.825e-05/0.2615, allocations: 88.14 kB / 426.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.2615, allocations: 3.938 kB / 426.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.2615, allocations: 21.7 kB / 426.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.2617, allocations: 314.8 kB / 426.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.312e-05/0.2617, allocations: 8 kB / 426.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-05/0.2617, allocations: 31.42 kB / 426.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.161e-05/0.2618, allocations: 39.38 kB / 426.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2618, allocations: 384 / 426.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.049e-05/0.2619, allocations: 65.67 kB / 426.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2619, allocations: 7.938 kB / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.2619, allocations: 0 / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.2619, allocations: 8 kB / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.617e-05/0.262, allocations: 8 kB / 426.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.262, allocations: 3.938 kB / 426.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.826e-05/0.262, allocations: 0 / 426.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.262, allocations: 4 kB / 426.7 MB, free: 10.87 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 9.094e-05/0.2621, allocations: 113.8 kB / 426.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.2622, allocations: 69.59 kB / 426.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.92e-05/0.2623, allocations: 12.03 kB / 426.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2623, allocations: 0 / 426.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2623, allocations: 0 / 426.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.2623, allocations: 0 / 426.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.2624, allocations: 124.8 kB / 427 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2624, allocations: 3.938 kB / 427 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.685e-05/0.2624, allocations: 8 kB / 427 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.2624, allocations: 7.875 kB / 427 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.2624, allocations: 3.984 kB / 427 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.2625, allocations: 4 kB / 427 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2625, allocations: 0 / 427 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.2626, allocations: 93.3 kB / 427.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.398e-06/0.2626, allocations: 3.938 kB / 427.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.801e-05/0.2627, allocations: 11.94 kB / 427.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.15e-05/0.2627, allocations: 4.031 kB / 427.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-06/0.2627, allocations: 7.984 kB / 427.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.2627, allocations: 0 / 427.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.622e-05/0.2628, allocations: 83.28 kB / 427.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2628, allocations: 0 / 427.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001775/0.2629, allocations: 4 kB / 427.2 MB, free: 10.24 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.0006003/0.2635, allocations: 0.6593 MB / 427.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001217/0.2637, allocations: 27.92 kB / 427.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2637, allocations: 0 / 427.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.2637, allocations: 0 / 427.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.2639, allocations: 31.98 kB / 427.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.265, allocations: 1.174 MB / 429.1 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.461e-05/0.2651, allocations: 71.14 kB / 429.2 MB, free: 8.133 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.172e-05/0.2651, allocations: 8.25 kB / 429.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.794e-05/0.2651, allocations: 11.44 kB / 429.2 MB, free: 8.113 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2651, allocations: 0 / 429.2 MB, free: 8.113 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.2861, allocations: 1.546 MB / 430.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/10.86, allocations: 6.812 kB / 430.8 MB, free: 6.719 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_TickBasedStep.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TickBasedStep/TickBasedStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(step.counter),step.counter,step.height,step.offset,step.startTick,step.y,time [Calling sys.exit(0), Time elapsed: 13.225200799992308]