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.0009106/0.0009107, allocations: 177.6 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.514/1.514, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007972/0.0007974, allocations: 98.28 kB / 270.9 MB, free: 8.344 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.07651/0.07651, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004707/0.0004708, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08284/0.08334, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1): time 0.001519/0.08491, allocations: 1.262 MB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006654/0.08561, allocations: 496 kB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.092e-05/0.08572, allocations: 0 / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.216e-05/0.08577, allocations: 7.922 kB / 444.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.0859, allocations: 7.938 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.08618, allocations: 39.89 kB / 444.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.177e-05/0.08627, allocations: 43.86 kB / 444.2 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.859e-05/0.08636, allocations: 11.98 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.593e-05/0.08644, allocations: 15.92 kB / 444.2 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.214e-05/0.0865, allocations: 15.92 kB / 444.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.08652, allocations: 4 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.159e-05/0.08654, allocations: 3.938 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.62e-05/0.08658, allocations: 7.938 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.961e-05/0.08661, allocations: 33.7 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.995e-05/0.08669, allocations: 39.86 kB / 444.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.0867, allocations: 4 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.08671, allocations: 0 / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.08672, allocations: 4 kB / 444.4 MB, free: 14.45 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.0003748/0.0871, allocations: 359.3 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.08714, allocations: 12.03 kB / 444.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.08718, allocations: 11.84 kB / 444.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.08735, allocations: 186.9 kB / 444.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.08737, allocations: 0 / 444.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.08739, allocations: 8 kB / 444.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002577/0.08765, allocations: 125 kB / 445 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.08767, allocations: 0 / 445 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.08768, allocations: 0 / 445 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.0877, allocations: 4 kB / 445 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.179e-05/0.08778, allocations: 23.98 kB / 445.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002556/0.08805, allocations: 269.6 kB / 445.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001711/0.08823, allocations: 142.3 kB / 445.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.02e-05/0.0883, allocations: 29.78 kB / 445.5 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.08833, allocations: 3.984 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.08835, allocations: 38.48 kB / 445.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.664e-06/0.08836, allocations: 8 kB / 445.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002442/0.08861, allocations: 85.45 kB / 445.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.08865, allocations: 81.11 kB / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.175e-05/0.08875, allocations: 137 kB / 445.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.08878, allocations: 29.69 kB / 445.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.037e-05/0.08883, allocations: 96.17 kB / 446 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.08885, allocations: 0 / 446 MB, free: 12.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-06/0.08886, allocations: 0 / 446 MB, free: 12.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.225e-05/0.08892, allocations: 322.8 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.452e-05/0.08897, allocations: 11.98 kB / 446.3 MB, free: 12.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.263e-05/0.08902, allocations: 35.42 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.391e-05/0.08907, allocations: 12 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.08908, allocations: 0 / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001226/0.0892, allocations: 81.45 kB / 446.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.08923, allocations: 8.125 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.08924, allocations: 4 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.08925, allocations: 0 / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.522e-05/0.08932, allocations: 11.98 kB / 446.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.08934, allocations: 4 kB / 446.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.274e-05/0.08939, allocations: 4 kB / 446.5 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.0894, allocations: 4 kB / 446.5 MB, free: 12.06 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 7.003e-05/0.08948, allocations: 126.4 kB / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-05/0.08954, allocations: 57.48 kB / 446.6 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.878e-05/0.08958, allocations: 16.23 kB / 446.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.08958, allocations: 0 / 446.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.08959, allocations: 0 / 446.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.0896, allocations: 0 / 446.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.08973, allocations: 173.6 kB / 446.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.08974, allocations: 0 / 446.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.362e-05/0.0898, allocations: 11.98 kB / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.08981, allocations: 0 / 446.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.08982, allocations: 4 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.08983, allocations: 0 / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.08983, allocations: 4 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.08999, allocations: 180.2 kB / 447 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.932e-05/0.09004, allocations: 85.09 kB / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.09006, allocations: 0 / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.651e-05/0.09013, allocations: 11.94 kB / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.09016, allocations: 0 / 447.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.09018, allocations: 11.98 kB / 447.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.821e-05/0.09023, allocations: 109.7 kB / 447.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09024, allocations: 0 / 447.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002012/0.09044, allocations: 4 kB / 447.2 MB, free: 11.18 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.185e-05/0.09052, allocations: 91.25 kB / 447.3 MB, free: 11.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.09067, allocations: 43.91 kB / 447.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.09068, allocations: 0 / 447.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.579e-05/0.09072, allocations: 8 kB / 447.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.09106, allocations: 28.48 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002899/0.09136, allocations: 219.4 kB / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.09149, allocations: 0.6965 MB / 448.3 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.438e-05/0.09152, allocations: 7.438 kB / 448.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.09153, allocations: 0 / 448.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of Templates: time 0.001763/0.0933, allocations: 0.742 MB / 449.1 MB, free: 9.281 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/jenkins/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