Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.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.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|feedback.y|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009669/0.0009671, allocations: 178.6 kB / 16.77 MB, free: 4.926 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.566/1.566, allocations: 205.4 MB / 222.9 MB, free: 8.934 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.0007545/0.0007545, allocations: 90.41 kB / 271.3 MB, free: 8.23 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.08203/0.08203, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000413/0.000413, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.09026, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.001666/0.09197, allocations: 1.369 MB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003548/0.09234, allocations: 159.5 kB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.354e-05/0.09245, allocations: 0 / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.77e-05/0.0925, allocations: 7.922 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.09266, allocations: 11.92 kB / 444.5 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.09291, allocations: 39.91 kB / 444.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.928e-05/0.093, allocations: 51.84 kB / 444.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.09313, allocations: 27.98 kB / 444.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.085e-05/0.09317, allocations: 11.88 kB / 444.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.457e-05/0.09323, allocations: 23.86 kB / 444.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.09326, allocations: 0 / 444.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.09328, allocations: 4 kB / 444.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.03e-05/0.09332, allocations: 23.91 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.554e-05/0.09337, allocations: 45.52 kB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.695e-05/0.09345, allocations: 39.92 kB / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.09346, allocations: 0 / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.09347, allocations: 0 / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.09348, allocations: 0 / 444.8 MB, free: 14.29 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004266/0.09391, allocations: 383.4 kB / 445.1 MB, free: 13.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.09396, allocations: 8.031 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.094, allocations: 16.84 kB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.09416, allocations: 193.8 kB / 445.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.09418, allocations: 4.375 kB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.09421, allocations: 8.375 kB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.09452, allocations: 167.7 kB / 445.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.09454, allocations: 4.188 kB / 445.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.09456, allocations: 7.875 kB / 445.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.09457, allocations: 0 / 445.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.09468, allocations: 39.97 kB / 445.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003225/0.09501, allocations: 373.8 kB / 446 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.09522, allocations: 119.9 kB / 446.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.288e-05/0.09532, allocations: 54.56 kB / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.09535, allocations: 8.125 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.09538, allocations: 42.5 kB / 446.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.09538, allocations: 0 / 446.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003047/0.09569, allocations: 125.5 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.09575, allocations: 107.1 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.459e-05/0.09584, allocations: 133.8 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.09585, allocations: 29.7 kB / 446.6 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.09591, allocations: 96.28 kB / 446.7 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.461e-05/0.09593, allocations: 8 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/0.09594, allocations: 4 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.846e-05/0.09599, allocations: 318.8 kB / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.45e-05/0.09604, allocations: 12 kB / 447 MB, free: 11.81 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.393e-05/0.0961, allocations: 83.59 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.09621, allocations: 103.5 kB / 447.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.09622, allocations: 0 / 447.2 MB, free: 11.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001499/0.09638, allocations: 113.4 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.0964, allocations: 6.812 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.09641, allocations: 4 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.09643, allocations: 3.938 kB / 447.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.872e-05/0.09651, allocations: 27.98 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.09652, allocations: 7.922 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.689e-05/0.09657, allocations: 12.19 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.09659, allocations: 11.98 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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 6.498e-05/0.09666, allocations: 134.4 kB / 447.5 MB, free: 11.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.09677, allocations: 81.52 kB / 447.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.09681, allocations: 12.72 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.09682, allocations: 0 / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.09683, allocations: 4 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.09683, allocations: 0 / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.09702, allocations: 181.6 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.09703, allocations: 3.984 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.712e-05/0.0971, allocations: 20 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.09711, allocations: 8 kB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.09713, allocations: 0 / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.09714, allocations: 3.984 kB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.09714, allocations: 4 kB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002795/0.09743, allocations: 316.2 kB / 448.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.416e-05/0.09748, allocations: 100.9 kB / 448.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.435e-05/0.0975, allocations: 3.938 kB / 448.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.928e-05/0.0976, allocations: 7.984 kB / 448.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.685e-05/0.09763, allocations: 4 kB / 448.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-06/0.09764, allocations: 4 kB / 448.2 MB, free: 10.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.835e-05/0.09769, allocations: 111.2 kB / 448.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.0977, allocations: 0 / 448.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002521/0.09796, allocations: 11.91 kB / 448.3 MB, free: 10.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (10): * Single equations (assignments): 10 * 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 7.75e-05/0.09804, allocations: 99.19 kB / 448.4 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001526/0.0982, allocations: 60.69 kB / 448.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.09821, allocations: 4.062 kB / 448.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.58e-05/0.09825, allocations: 15.88 kB / 448.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.0987, allocations: 40.02 kB / 448.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003327/0.09904, allocations: 262.6 kB / 448.8 MB, free: 9.766 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/0.09921, allocations: 0.7043 MB / 449.5 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.609e-05/0.09924, allocations: 11.44 kB / 449.5 MB, free: 9.023 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.09925, allocations: 0 / 449.5 MB, free: 9.023 MB / 298.7 MB Notification: Performance of Templates: time 0.001933/0.1012, allocations: 0.8991 MB / 450.4 MB, free: 8.125 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches