Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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-master/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-master/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: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 179.4 kB / 16.45 MB, free: 5.684 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.327/1.327, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007404/0.0007405, allocations: 86.36 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0683/0.0683, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003632, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06314/0.06352, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001179/0.06474, allocations: 1.207 MB / 443.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000253/0.06501, allocations: 143.6 kB / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.85e-05/0.06508, allocations: 0 / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.342e-05/0.06511, allocations: 3.984 kB / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.205e-05/0.06521, allocations: 7.938 kB / 443.7 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.0654, allocations: 35.84 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.075e-05/0.06547, allocations: 27.92 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.289e-05/0.06555, allocations: 11.98 kB / 443.8 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.469e-05/0.06558, allocations: 11.92 kB / 443.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.145e-05/0.06562, allocations: 7.938 kB / 443.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.06564, allocations: 4 kB / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.989e-06/0.06565, allocations: 4 kB / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.737e-05/0.06569, allocations: 15.92 kB / 443.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.974e-05/0.06571, allocations: 33.64 kB / 443.9 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.729e-05/0.06576, allocations: 23.95 kB / 443.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.06577, allocations: 0 / 443.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.06578, allocations: 0 / 443.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.06579, allocations: 4 kB / 443.9 MB, free: 14.9 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002887/0.06608, allocations: 367.3 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.649e-05/0.06611, allocations: 8.031 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.424e-05/0.06614, allocations: 7.906 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.06626, allocations: 187 kB / 444.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.06628, allocations: 8 kB / 444.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.06629, allocations: 11.89 kB / 444.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.0665, allocations: 124.9 kB / 444.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.06652, allocations: 0 / 444.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.312e-06/0.06653, allocations: 0 / 444.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.06654, allocations: 4 kB / 444.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.981e-05/0.06662, allocations: 19.98 kB / 444.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000201/0.06682, allocations: 269.7 kB / 444.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.06698, allocations: 134.4 kB / 445 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.423e-05/0.06704, allocations: 29.7 kB / 445.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.06706, allocations: 4 kB / 445.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.077e-05/0.06708, allocations: 38.5 kB / 445.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.06708, allocations: 0 / 445.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001976/0.06729, allocations: 81.52 kB / 445.2 MB, free: 13.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.06732, allocations: 85.23 kB / 445.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.935e-05/0.0674, allocations: 134 kB / 445.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.272e-06/0.06741, allocations: 25.7 kB / 445.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.419e-05/0.06744, allocations: 92.12 kB / 445.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-06/0.06745, allocations: 0 / 445.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-06/0.06746, allocations: 0 / 445.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.515e-05/0.0675, allocations: 318.8 kB / 445.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.06754, allocations: 15.98 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.678e-05/0.06758, allocations: 39.42 kB / 445.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.741e-05/0.06763, allocations: 12 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.06763, allocations: 3.938 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001046/0.06774, allocations: 77.45 kB / 446 MB, free: 12.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.015e-05/0.06776, allocations: 4 kB / 446 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.06777, allocations: 4 kB / 446 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.06779, allocations: 0 / 446 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.001e-05/0.06784, allocations: 12 kB / 446 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.06785, allocations: 0 / 446 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.11e-05/0.06789, allocations: 12.06 kB / 446 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.0679, allocations: 7.984 kB / 446 MB, free: 12.52 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: 4 (step.y,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 7.389e-05/0.06798, allocations: 122.5 kB / 446.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.602e-05/0.06804, allocations: 53.53 kB / 446.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.335e-05/0.06807, allocations: 12.25 kB / 446.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.06808, allocations: 336 / 446.2 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.06809, allocations: 3.938 kB / 446.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.06809, allocations: 0 / 446.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.0682, allocations: 169.6 kB / 446.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.06821, allocations: 4 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.831e-05/0.06826, allocations: 15.97 kB / 446.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.06827, allocations: 4 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.291e-06/0.06828, allocations: 4 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.06829, allocations: 4 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.06829, allocations: 0 / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001194/0.06842, allocations: 172.2 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.142e-05/0.06846, allocations: 89.05 kB / 446.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.06848, allocations: 8 kB / 446.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.57e-05/0.06854, allocations: 0 / 446.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.499e-05/0.06857, allocations: 4 kB / 446.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.06858, allocations: 0 / 446.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.109e-05/0.06862, allocations: 107.2 kB / 446.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06863, allocations: 4 kB / 446.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001942/0.06883, allocations: 7.906 kB / 446.8 MB, free: 11.64 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: 4 (step.y,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 5.884e-05/0.06889, allocations: 91.25 kB / 446.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.06901, allocations: 31.92 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.06902, allocations: 0 / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.133e-05/0.06906, allocations: 16.23 kB / 446.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.06935, allocations: 27.97 kB / 446.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000227/0.06959, allocations: 187.4 kB / 447.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.722e-05/0.06969, allocations: 0.6887 MB / 447.8 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.879e-05/0.06972, allocations: 11.5 kB / 447.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.06972, allocations: 0 / 447.8 MB, free: 10.52 MB / 298.7 MB Notification: Performance of Templates: time 0.00142/0.07115, allocations: 0.6953 MB / 448.5 MB, free: 9.824 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches