Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00749/0.007489, allocations: 182 kB / 16.45 MB, free: 5.711 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.224/4.224, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.00186/0.001859, allocations: 96.3 kB / 270.9 MB, free: 8.359 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.239/0.239, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009242/0.0009246, allocations: 20 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1598, allocations: 50.37 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.002796/0.1627, allocations: 1.263 MB / 443.6 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.1641, allocations: 492 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.1644, allocations: 0 / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.658e-05/0.1644, allocations: 3.938 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001712/0.1646, allocations: 7.984 kB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.1651, allocations: 43.83 kB / 444.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.1652, allocations: 23.97 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.1654, allocations: 11.98 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.1655, allocations: 19.92 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.144e-05/0.1657, allocations: 19.86 kB / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.106e-05/0.1657, allocations: 0 / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.125e-05/0.1657, allocations: 0 / 444.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.1659, allocations: 15.92 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.603e-05/0.1659, allocations: 29.7 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001267/0.1661, allocations: 31.94 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1661, allocations: 8 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1661, allocations: 0 / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1661, allocations: 0 / 444.3 MB, free: 14.48 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.000645/0.1668, allocations: 367.3 kB / 444.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/0.1668, allocations: 12.03 kB / 444.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.1669, allocations: 11.84 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002588/0.1672, allocations: 186.9 kB / 444.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.885e-05/0.1672, allocations: 4 kB / 444.9 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.1673, allocations: 8 kB / 444.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004758/0.1678, allocations: 117 kB / 445 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1678, allocations: 0 / 445 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.1679, allocations: 0 / 445 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1679, allocations: 0 / 445 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.1682, allocations: 31.92 kB / 445 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004669/0.1686, allocations: 265.7 kB / 445.3 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.169, allocations: 150.3 kB / 445.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.1691, allocations: 3.938 kB / 445.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.1691, allocations: 30.56 kB / 445.5 MB, free: 13.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 3.908e-06/0.1691, allocations: 0 / 445.5 MB, free: 13.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.004775/0.1739, allocations: 89.58 kB / 445.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.215e-05/0.1741, allocations: 81.11 kB / 445.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.1743, allocations: 140 kB / 445.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.1743, allocations: 25.7 kB / 445.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.1744, allocations: 154.5 kB / 445.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/0.1745, allocations: 8 kB / 446 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.014e-06/0.1745, allocations: 3.938 kB / 446 MB, free: 12.59 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.715e-05/0.1746, allocations: 318.9 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.1747, allocations: 15.98 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.1748, allocations: 31.42 kB / 446.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001155/0.175, allocations: 20 kB / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.175, allocations: 0 / 446.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003206/0.1753, allocations: 65.61 kB / 446.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.1754, allocations: 4 kB / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1754, allocations: 4 kB / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.1754, allocations: 0 / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.1756, allocations: 16.06 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1757, allocations: 3.984 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.1758, allocations: 12 kB / 446.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.1758, allocations: 4 kB / 446.4 MB, free: 12.07 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: 0 () * 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 0.0001432/0.176, allocations: 121.6 kB / 446.6 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.1761, allocations: 49.59 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.794e-05/0.1762, allocations: 12.25 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1762, allocations: 0 / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.1763, allocations: 4 kB / 446.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.1763, allocations: 7.922 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.1766, allocations: 177.5 kB / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.1766, allocations: 0 / 446.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.1768, allocations: 12 kB / 446.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.736e-06/0.1768, allocations: 336 / 446.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.1768, allocations: 7.984 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.1769, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1769, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/0.1772, allocations: 190 kB / 447 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.365e-05/0.1774, allocations: 93 kB / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.1774, allocations: 0 / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.1776, allocations: 4 kB / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.02e-05/0.1777, allocations: 3.938 kB / 447.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.1777, allocations: 8 kB / 447.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.1778, allocations: 113.7 kB / 447.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1779, allocations: 0 / 447.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005634/0.1784, allocations: 8 kB / 447.2 MB, free: 11.17 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: 0 () * 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 0.000141/0.1786, allocations: 91.25 kB / 447.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003278/0.1789, allocations: 44.09 kB / 447.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.179, allocations: 0 / 447.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.523e-05/0.1791, allocations: 8 kB / 447.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000631/0.1797, allocations: 27.92 kB / 447.4 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006423/0.1804, allocations: 227.1 kB / 447.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.1807, allocations: 0.6965 MB / 448.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.1807, allocations: 7.438 kB / 448.3 MB, free: 10 MB / 298.7 MB Notification: Performance of SimCode: time 2.855e-06/0.1807, allocations: 0 / 448.3 MB, free: 10 MB / 298.7 MB Notification: Performance of Templates: time 0.003881/0.1846, allocations: 0.7305 MB / 449.1 MB, free: 9.273 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches