Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001167/0.001167, allocations: 170.8 kB / 16.77 MB, free: 4.91 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.179/1.179, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007061/0.000706, allocations: 90.39 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05836/0.05836, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003671/0.0003672, allocations: 19.98 kB / 392.2 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06235/0.06273, allocations: 50.29 MB / 442.5 MB, free: 16.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep): time 0.001092/0.06385, allocations: 1.125 MB / 443.6 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001404/0.06402, allocations: 31.91 kB / 443.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.732e-05/0.06407, allocations: 0 / 443.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.0641, allocations: 3.938 kB / 443.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.033e-05/0.06415, allocations: 0 / 443.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.06435, allocations: 19.98 kB / 443.7 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.239e-05/0.06442, allocations: 23.94 kB / 443.7 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.787e-05/0.06451, allocations: 15.97 kB / 443.7 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.884e-05/0.06454, allocations: 11.94 kB / 443.7 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.583e-05/0.06458, allocations: 3.984 kB / 443.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.0646, allocations: 7.938 kB / 443.7 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.965e-06/0.06462, allocations: 3.938 kB / 443.7 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.231e-05/0.06463, allocations: 4 kB / 443.8 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.944e-05/0.06467, allocations: 33.64 kB / 443.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.916e-05/0.06472, allocations: 19.95 kB / 443.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.06473, allocations: 0 / 443.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.06474, allocations: 0 / 443.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.06475, allocations: 4 kB / 443.8 MB, free: 15.21 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.0002602/0.06501, allocations: 339.7 kB / 444.1 MB, free: 14.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.06505, allocations: 8.031 kB / 444.1 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.299e-05/0.06508, allocations: 34.75 kB / 444.2 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.116e-05/0.06511, allocations: 4.844 kB / 444.2 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.06522, allocations: 176.3 kB / 444.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.06524, allocations: 8.312 kB / 444.4 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.06526, allocations: 384 / 444.4 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.06553, allocations: 119.8 kB / 444.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.06555, allocations: 3.938 kB / 444.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.194e-06/0.06556, allocations: 0 / 444.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.06557, allocations: 7.984 kB / 444.5 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.761e-05/0.06566, allocations: 19.98 kB / 444.5 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.328e-05/0.06575, allocations: 153.7 kB / 444.7 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001074/0.06587, allocations: 58.48 kB / 444.7 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.744e-05/0.06593, allocations: 24.92 kB / 444.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.749e-06/0.06595, allocations: 0 / 444.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.338e-05/0.06597, allocations: 34.56 kB / 444.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.06597, allocations: 0 / 444.8 MB, free: 14.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002088/0.06618, allocations: 81.5 kB / 444.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.06622, allocations: 55.41 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.431e-05/0.06627, allocations: 105.9 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.891e-06/0.06629, allocations: 29.64 kB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.576e-05/0.06631, allocations: 84.12 kB / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.06632, allocations: 8 kB / 445.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-06/0.06633, allocations: 0 / 445.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.576e-05/0.06637, allocations: 310.8 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.06639, allocations: 8 kB / 445.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.714e-05/0.06641, allocations: 27.42 kB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.083e-05/0.06645, allocations: 39.38 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.06645, allocations: 0 / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.373e-05/0.06652, allocations: 65.53 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.06654, allocations: 12.06 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.06655, allocations: 384 / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.06656, allocations: 4 kB / 445.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.315e-05/0.06661, allocations: 11.88 kB / 445.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.06662, allocations: 7.938 kB / 445.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.821e-05/0.06665, allocations: 0 / 445.6 MB, free: 13.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-06/0.06665, allocations: 4 kB / 445.6 MB, free: 13.15 MB / 298.7 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 (step.counter,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.448e-05/0.0667, allocations: 125.5 kB / 445.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.06681, allocations: 57.62 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.779e-05/0.06684, allocations: 15.48 kB / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.06685, allocations: 0 / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.06686, allocations: 0 / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.06686, allocations: 4 kB / 445.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.571e-05/0.06691, allocations: 149.7 kB / 446 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.06692, allocations: 4 kB / 446 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.926e-05/0.06696, allocations: 3.984 kB / 446 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.06696, allocations: 11.88 kB / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.06698, allocations: 0 / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.06698, allocations: 0 / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.06699, allocations: 0 / 446 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001177/0.06711, allocations: 93.25 kB / 446.1 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.437e-05/0.06713, allocations: 81.14 kB / 446.1 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.06715, allocations: 3.938 kB / 446.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.698e-05/0.06718, allocations: 11.98 kB / 446.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.505e-06/0.06719, allocations: 0 / 446.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.0672, allocations: 0 / 446.2 MB, free: 12.49 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.838e-05/0.06722, allocations: 79.28 kB / 446.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.06723, allocations: 4 kB / 446.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001713/0.0674, allocations: 8 kB / 446.3 MB, free: 12.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003067/0.06771, allocations: 0.6435 MB / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.279e-05/0.06782, allocations: 27.92 kB / 446.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.06783, allocations: 320 / 446.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.06783, allocations: 4 kB / 446.9 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001976/0.06803, allocations: 31.98 kB / 447 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004192/0.06846, allocations: 418.8 kB / 447.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.66e-05/0.06855, allocations: 0.6809 MB / 448.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.06859, allocations: 15.44 kB / 448.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.06859, allocations: 0 / 448.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.204/2.273, allocations: 0.7978 MB / 448.9 MB, free: 9.672 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedStep_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedStep.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,assignClock1.y,step.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,previous(step.counter),step.counter,step.startTick,step.startValue,step.y,time