Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009343/0.000934, allocations: 183.5 kB / 16.45 MB, free: 5.656 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.295/1.295, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007202/0.0007202, allocations: 86.3 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.06762/0.06762, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003643, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06451/0.06489, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1): time 0.001203/0.06614, allocations: 1.195 MB / 443.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002603/0.06641, allocations: 147.6 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.868e-05/0.06648, allocations: 4 kB / 443.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.311e-05/0.06651, allocations: 0 / 443.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.809e-05/0.06662, allocations: 11.92 kB / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001847/0.06681, allocations: 27.91 kB / 443.8 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.576e-05/0.06688, allocations: 27.92 kB / 443.8 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.658e-05/0.06697, allocations: 12 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.473e-05/0.067, allocations: 11.92 kB / 443.8 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.301e-05/0.06703, allocations: 7.938 kB / 443.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.06705, allocations: 0 / 443.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.486e-06/0.06707, allocations: 4 kB / 443.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.734e-05/0.0671, allocations: 19.91 kB / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.061e-05/0.06712, allocations: 33.7 kB / 443.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.058e-05/0.06718, allocations: 23.95 kB / 443.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.06719, allocations: 0 / 443.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.06719, allocations: 0 / 443.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.06721, allocations: 3.938 kB / 443.9 MB, free: 14.91 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.0002848/0.06749, allocations: 359.4 kB / 444.2 MB, free: 14.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.06753, allocations: 8.031 kB / 444.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.865e-05/0.06757, allocations: 11.91 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.0677, allocations: 186.8 kB / 444.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.06772, allocations: 8 kB / 444.5 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.326e-06/0.06773, allocations: 3.953 kB / 444.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001991/0.06794, allocations: 117 kB / 444.6 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.06796, allocations: 0 / 444.6 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.574e-06/0.06797, allocations: 4 kB / 444.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.06798, allocations: 0 / 444.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.392e-05/0.06804, allocations: 19.92 kB / 444.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002092/0.06825, allocations: 257.7 kB / 444.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.06838, allocations: 146.2 kB / 445 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.532e-05/0.06843, allocations: 29.77 kB / 445 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.336e-05/0.06845, allocations: 0 / 445 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.06847, allocations: 34.56 kB / 445.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.61e-07/0.06848, allocations: 0 / 445.1 MB, free: 13.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001847/0.06867, allocations: 73.61 kB / 445.1 MB, free: 13.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.06871, allocations: 81.11 kB / 445.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.386e-05/0.06879, allocations: 135.1 kB / 445.3 MB, free: 13.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.891e-06/0.0688, allocations: 25.7 kB / 445.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.391e-05/0.06883, allocations: 84.14 kB / 445.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.015e-06/0.06884, allocations: 12.06 kB / 445.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.06885, allocations: 3.938 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.586e-05/0.06889, allocations: 314.8 kB / 445.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.729e-05/0.06892, allocations: 8 kB / 445.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.803e-05/0.06896, allocations: 35.42 kB / 445.8 MB, free: 12.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.035e-05/0.069, allocations: 19.95 kB / 445.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.069, allocations: 0 / 445.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001005/0.06911, allocations: 57.62 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.06913, allocations: 8 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.06914, allocations: 3.938 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.739e-06/0.06915, allocations: 0 / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.164e-05/0.06917, allocations: 16.05 kB / 445.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.06918, allocations: 0 / 445.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.067e-05/0.06921, allocations: 11.84 kB / 445.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.06922, allocations: 4 kB / 445.9 MB, free: 12.6 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 5.08e-05/0.06928, allocations: 122.5 kB / 446 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.195e-05/0.06934, allocations: 45.69 kB / 446.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/0.06937, allocations: 11.91 kB / 446.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.06937, allocations: 336 / 446.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.06938, allocations: 0 / 446.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.06939, allocations: 11.94 kB / 446.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.06951, allocations: 169.6 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.06952, allocations: 3.953 kB / 446.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.06953, allocations: 3.984 kB / 446.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.06954, allocations: 3.984 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.059e-06/0.06955, allocations: 4 kB / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.06956, allocations: 0 / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.06956, allocations: 0 / 446.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.06967, allocations: 156.4 kB / 446.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.107e-05/0.06971, allocations: 96.95 kB / 446.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.06972, allocations: 4 kB / 446.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.044e-05/0.06978, allocations: 0 / 446.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.06981, allocations: 11.92 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.06982, allocations: 0 / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.679e-05/0.06986, allocations: 103.8 kB / 446.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.06986, allocations: 0 / 446.7 MB, free: 11.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.07007, allocations: 8 kB / 446.7 MB, free: 11.75 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.657e-05/0.07013, allocations: 95.25 kB / 446.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.369e-05/0.07023, allocations: 27.92 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.07024, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.272e-05/0.07027, allocations: 8 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.07056, allocations: 28.33 kB / 446.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002264/0.0708, allocations: 187.4 kB / 447 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001261/0.07093, allocations: 0.6926 MB / 447.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.989e-05/0.07096, allocations: 11.38 kB / 447.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.07096, allocations: 0 / 447.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of Templates: time 0.001394/0.07236, allocations: 0.6756 MB / 448.4 MB, free: 9.953 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches