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.001005/0.001005, allocations: 179.9 kB / 16.77 MB, free: 4.922 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.598/1.598, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007299/0.0007299, allocations: 78.42 kB / 271.3 MB, free: 8.25 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.07259/0.07259, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.0003851, allocations: 12 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06859/0.069, allocations: 50.38 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001316/0.07035, allocations: 1.207 MB / 444.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002936/0.07067, allocations: 143.7 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.585e-05/0.07077, allocations: 3.938 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.939e-05/0.07081, allocations: 0 / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.07093, allocations: 7.938 kB / 444.3 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.07115, allocations: 31.91 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.878e-05/0.07122, allocations: 27.92 kB / 444.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.927e-05/0.07132, allocations: 15.98 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.642e-05/0.07135, allocations: 7.938 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.677e-05/0.07139, allocations: 23.91 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.07141, allocations: 0 / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.013e-05/0.07143, allocations: 4 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.197e-05/0.07147, allocations: 11.88 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.054e-05/0.0715, allocations: 45.56 kB / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.698e-05/0.07156, allocations: 23.95 kB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.07158, allocations: 0 / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.07158, allocations: 0 / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.07159, allocations: 0 / 444.5 MB, free: 14.56 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.0003467/0.07194, allocations: 367.5 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.07198, allocations: 12.03 kB / 444.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.07202, allocations: 8.844 kB / 444.9 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.07215, allocations: 192.1 kB / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.07217, allocations: 384 / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.07219, allocations: 8.375 kB / 445.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002298/0.07243, allocations: 113.6 kB / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.07244, allocations: 192 / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.07247, allocations: 11.92 kB / 445.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.07248, allocations: 0 / 445.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.117e-05/0.07256, allocations: 23.92 kB / 445.2 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002252/0.07279, allocations: 261.7 kB / 445.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.07295, allocations: 146.2 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.562e-05/0.07302, allocations: 33.77 kB / 445.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.07304, allocations: 0 / 445.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.122e-05/0.07306, allocations: 30.56 kB / 445.7 MB, free: 13.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.07307, allocations: 4 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002043/0.07328, allocations: 77.61 kB / 445.8 MB, free: 13.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.07332, allocations: 89.22 kB / 445.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.351e-05/0.07341, allocations: 138 kB / 446 MB, free: 12.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.945e-06/0.07343, allocations: 29.7 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.01e-05/0.07346, allocations: 84.14 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.945e-06/0.07347, allocations: 3.938 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-06/0.07348, allocations: 0 / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.07353, allocations: 318.8 kB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.625e-05/0.07357, allocations: 15.94 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.665e-05/0.07361, allocations: 35.42 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.881e-05/0.07369, allocations: 51.36 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.0737, allocations: 0 / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001031/0.07381, allocations: 73.5 kB / 446.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.07383, allocations: 11.92 kB / 446.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.07384, allocations: 4 kB / 446.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.07386, allocations: 4.125 kB / 446.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.225e-05/0.07391, allocations: 8 kB / 446.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.07393, allocations: 4 kB / 446.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.17e-05/0.07396, allocations: 3.906 kB / 446.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.07397, allocations: 7.984 kB / 446.6 MB, free: 12.14 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.736e-05/0.07404, allocations: 129.5 kB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.381e-05/0.0741, allocations: 45.69 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.8e-05/0.07413, allocations: 16.25 kB / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.07414, allocations: 0 / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.07415, allocations: 0 / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.07415, allocations: 0 / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001173/0.07428, allocations: 177.5 kB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.07429, allocations: 0 / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.721e-05/0.07434, allocations: 15.98 kB / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.07435, allocations: 0 / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.07436, allocations: 0 / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.07437, allocations: 4 kB / 447 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.07437, allocations: 3.938 kB / 447 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.0745, allocations: 172.6 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.49e-05/0.07454, allocations: 93 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.07456, allocations: 4 kB / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.549e-05/0.07462, allocations: 0 / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.602e-05/0.07466, allocations: 8 kB / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.07466, allocations: 0 / 447.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.15e-05/0.07471, allocations: 107.2 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07472, allocations: 0 / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002099/0.07493, allocations: 4 kB / 447.4 MB, free: 11.27 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 6.177e-05/0.075, allocations: 95.19 kB / 447.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001181/0.07512, allocations: 36.11 kB / 447.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.07513, allocations: 0 / 447.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.087e-05/0.07517, allocations: 15.98 kB / 447.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.07549, allocations: 27.91 kB / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002564/0.07575, allocations: 195.2 kB / 447.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.07587, allocations: 0.6887 MB / 448.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.954e-05/0.07589, allocations: 7.438 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.0759, allocations: 4 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of Templates: time 0.001567/0.07747, allocations: 0.6853 MB / 449.1 MB, free: 9.445 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