Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked",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.001022/0.001022, allocations: 173.3 kB / 16.76 MB, free: 4.93 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.214/1.214, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007223/0.0007223, allocations: 97.48 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.06739/0.06739, allocations: 12.19 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003936, allocations: 15.98 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07204/0.07246, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001371/0.07386, allocations: 1.188 MB / 443.7 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003359/0.07422, allocations: 151.6 kB / 443.8 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.926e-05/0.07431, allocations: 4 kB / 443.8 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.49e-05/0.07435, allocations: 7.922 kB / 443.8 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.07447, allocations: 7.984 kB / 443.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.07468, allocations: 31.91 kB / 443.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.861e-05/0.07477, allocations: 27.92 kB / 443.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.119e-05/0.07485, allocations: 8 kB / 443.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.403e-05/0.07491, allocations: 15.92 kB / 443.9 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.407e-05/0.07497, allocations: 11.94 kB / 443.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.07499, allocations: 3.938 kB / 443.9 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.021e-05/0.07501, allocations: 4 kB / 444 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.13e-05/0.07504, allocations: 11.97 kB / 444 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.051e-05/0.07508, allocations: 41.58 kB / 444 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.84e-05/0.07514, allocations: 23.97 kB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.07515, allocations: 3.984 kB / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07516, allocations: 0 / 444 MB, free: 15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.07517, allocations: 0 / 444 MB, free: 15 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000325/0.0755, allocations: 347.6 kB / 444.4 MB, free: 14.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.07555, allocations: 12.03 kB / 444.4 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.07559, allocations: 34.75 kB / 444.4 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.895e-05/0.07562, allocations: 8.844 kB / 444.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.07578, allocations: 204 kB / 444.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.07581, allocations: 384 / 444.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.07582, allocations: 4.375 kB / 444.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.07604, allocations: 97.61 kB / 444.7 MB, free: 14.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.07606, allocations: 3.938 kB / 444.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.07607, allocations: 0 / 444.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.07608, allocations: 0 / 444.7 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.616e-05/0.07614, allocations: 15.98 kB / 444.7 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002394/0.07639, allocations: 257.8 kB / 445 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.591e-05/0.07646, allocations: 49.16 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.381e-05/0.0765, allocations: 17.77 kB / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.07653, allocations: 3.938 kB / 445.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.536e-05/0.07655, allocations: 38.56 kB / 445.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.07655, allocations: 4 kB / 445.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.000182/0.07674, allocations: 57.53 kB / 445.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.07678, allocations: 81.11 kB / 445.2 MB, free: 13.56 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.676e-05/0.07687, allocations: 134.8 kB / 445.4 MB, free: 13.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.742e-06/0.07688, allocations: 25.7 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/0.07691, allocations: 84.38 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.854e-06/0.07693, allocations: 4 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.07693, allocations: 4 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.238e-05/0.07698, allocations: 314.8 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.569e-05/0.07701, allocations: 4 kB / 445.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.439e-05/0.07704, allocations: 21.7 kB / 445.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.52e-05/0.07709, allocations: 25.72 kB / 445.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.0771, allocations: 3.938 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.754e-05/0.07719, allocations: 53.62 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.07721, allocations: 4 kB / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.07722, allocations: 0 / 445.9 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.07724, allocations: 4 kB / 445.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.526e-05/0.07726, allocations: 3.938 kB / 445.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.07727, allocations: 4.062 kB / 445.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.502e-05/0.0773, allocations: 3.906 kB / 445.9 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-06/0.07731, allocations: 4 kB / 445.9 MB, free: 12.83 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.994e-05/0.07737, allocations: 126.4 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.473e-05/0.07742, allocations: 33.7 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.396e-05/0.07745, allocations: 15.47 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.07746, allocations: 0 / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.07747, allocations: 4 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.07747, allocations: 0 / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.0776, allocations: 169.6 kB / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.07761, allocations: 0 / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-06/0.07762, allocations: 0 / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.07762, allocations: 3.984 kB / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.07764, allocations: 7.938 kB / 446.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.07764, allocations: 0 / 446.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.07765, allocations: 0 / 446.3 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.07776, allocations: 160.2 kB / 446.4 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.377e-05/0.0778, allocations: 89 kB / 446.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.07782, allocations: 0 / 446.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.846e-05/0.07788, allocations: 8 kB / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.881e-05/0.07791, allocations: 0 / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-06/0.07792, allocations: 0 / 446.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.334e-05/0.07797, allocations: 107.8 kB / 446.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07798, allocations: 0 / 446.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002068/0.07819, allocations: 8.031 kB / 446.6 MB, free: 12.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0002452/0.07844, allocations: 0.6819 MB / 447.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.075e-05/0.07854, allocations: 20.03 kB / 447.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.07855, allocations: 3.938 kB / 447.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.303e-05/0.07858, allocations: 7.984 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003093/0.0789, allocations: 20.02 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006198/0.07953, allocations: 465.9 kB / 447.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001291/0.07967, allocations: 0.6849 MB / 448.5 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.07971, allocations: 11.44 kB / 448.5 MB, free: 10 MB / 298.7 MB Notification: Performance of SimCode: time 5e-07/0.07972, allocations: 0 / 448.5 MB, free: 10 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.254/2.333, allocations: 0.8044 MB / 449.3 MB, free: 9.199 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SampleClocked.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,step.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.u,sample.y,step.startTime,step.startValue,step.y,time