Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008767/0.0008768, allocations: 175.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.533/1.533, 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.000853/0.0008532, allocations: 90.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.07611/0.07611, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.0003989, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08234/0.08276, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001279/0.08406, allocations: 1.235 MB / 443.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002881/0.08437, allocations: 155.6 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.08444, allocations: 0 / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.312e-05/0.08447, allocations: 0 / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.08458, allocations: 7.938 kB / 443.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001874/0.08478, allocations: 23.92 kB / 443.8 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.34e-05/0.08485, allocations: 31.91 kB / 443.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.813e-05/0.08493, allocations: 15.98 kB / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.38e-05/0.08496, allocations: 11.94 kB / 443.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.405e-05/0.085, allocations: 15.92 kB / 443.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.08502, allocations: 0 / 443.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.277e-06/0.08503, allocations: 0 / 443.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.743e-05/0.08507, allocations: 7.938 kB / 443.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.0851, allocations: 37.69 kB / 443.9 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.295e-05/0.08515, allocations: 39.81 kB / 443.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.08516, allocations: 0 / 443.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.08517, allocations: 0 / 443.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.08518, allocations: 0 / 443.9 MB, free: 14.86 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.000309/0.08549, allocations: 363.3 kB / 444.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.08553, allocations: 8.031 kB / 444.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.86e-05/0.08556, allocations: 7.906 kB / 444.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.08569, allocations: 180.4 kB / 444.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-06/0.08571, allocations: 7.938 kB / 444.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.08572, allocations: 3.953 kB / 444.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.08594, allocations: 124.9 kB / 444.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.08596, allocations: 0 / 444.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.08598, allocations: 0 / 444.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.08598, allocations: 0 / 444.6 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.166e-05/0.08606, allocations: 23.98 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000212/0.08628, allocations: 269.7 kB / 444.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.08644, allocations: 134.3 kB / 445 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.672e-05/0.08651, allocations: 33.77 kB / 445.1 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.08653, allocations: 8 kB / 445.1 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.238e-05/0.08655, allocations: 34.5 kB / 445.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.08656, allocations: 0 / 445.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000208/0.08677, allocations: 85.61 kB / 445.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.08681, allocations: 85.09 kB / 445.3 MB, free: 13.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.178e-05/0.0869, allocations: 134 kB / 445.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.322e-06/0.08691, allocations: 25.7 kB / 445.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.08694, allocations: 84.14 kB / 445.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.11e-05/0.08696, allocations: 11.88 kB / 445.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.154e-06/0.08696, allocations: 0 / 445.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.269e-05/0.08701, allocations: 322.8 kB / 445.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.703e-05/0.08706, allocations: 12.03 kB / 445.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.812e-05/0.0871, allocations: 39.42 kB / 445.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.693e-05/0.08714, allocations: 12 kB / 445.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.08715, allocations: 0 / 445.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001051/0.08726, allocations: 81.45 kB / 446 MB, free: 12.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.699e-06/0.08728, allocations: 4 kB / 446 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.08729, allocations: 0 / 446 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.528e-06/0.0873, allocations: 4 kB / 446 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.882e-05/0.08736, allocations: 12.11 kB / 446 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.08737, allocations: 4 kB / 446 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.201e-05/0.08741, allocations: 8 kB / 446 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.08742, allocations: 4 kB / 446 MB, free: 12.49 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 5.069e-05/0.08747, allocations: 122.5 kB / 446.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.511e-05/0.08753, allocations: 53.53 kB / 446.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.328e-05/0.08756, allocations: 8.25 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.08757, allocations: 7.938 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.08758, allocations: 0 / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.08759, allocations: 7.984 kB / 446.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001062/0.0877, allocations: 165.6 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.08771, allocations: 3.984 kB / 446.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.08775, allocations: 8 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.08776, allocations: 4 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.08777, allocations: 4 kB / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.08778, allocations: 0 / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.08778, allocations: 0 / 446.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/0.08791, allocations: 176.2 kB / 446.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.224e-05/0.08795, allocations: 89.05 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.118e-05/0.08797, allocations: 4 kB / 446.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.483e-05/0.08803, allocations: 4 kB / 446.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.285e-05/0.08805, allocations: 4.359 kB / 446.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.08806, allocations: 4 kB / 446.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.94e-05/0.08811, allocations: 103.3 kB / 446.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.08811, allocations: 0 / 446.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001991/0.08832, allocations: 11.84 kB / 446.8 MB, free: 11.62 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 7.453e-05/0.0884, allocations: 95.25 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.08852, allocations: 35.91 kB / 446.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.08853, allocations: 256 / 446.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.07e-05/0.08856, allocations: 12 kB / 446.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.08886, allocations: 27.94 kB / 447 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002254/0.0891, allocations: 191.4 kB / 447.1 MB, free: 11.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.08921, allocations: 0.6888 MB / 447.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.91e-05/0.08924, allocations: 11.44 kB / 447.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.08924, allocations: 0 / 447.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of Templates: time 0.001473/0.09072, allocations: 0.6911 MB / 448.5 MB, free: 9.797 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches