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.002966/0.002965, allocations: 188.1 kB / 16.45 MB, free: 5.582 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.259/4.259, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.001772/0.001772, allocations: 98.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.255/0.255, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.005473/0.005473, allocations: 14.34 kB / 392 MB, free: 54.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2724, allocations: 50.38 MB / 442.4 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.003364/0.2758, allocations: 1.372 MB / 443.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007207/0.2766, allocations: 155.5 kB / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001724/0.2768, allocations: 4 kB / 443.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.198e-05/0.2769, allocations: 3.938 kB / 443.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.2771, allocations: 11.97 kB / 443.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005007/0.2776, allocations: 49.59 kB / 443.9 MB, free: 10 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.2778, allocations: 27.97 kB / 444 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.278, allocations: 27.92 kB / 444 MB, free: 9.949 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.23e-05/0.2781, allocations: 15.91 kB / 444 MB, free: 9.934 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.246e-05/0.2782, allocations: 23.86 kB / 444 MB, free: 9.91 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.2783, allocations: 3.938 kB / 444 MB, free: 9.906 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.211e-05/0.2783, allocations: 4 kB / 444 MB, free: 9.902 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.423e-05/0.2784, allocations: 11.94 kB / 444.1 MB, free: 9.891 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.158e-05/0.2784, allocations: 37.7 kB / 444.1 MB, free: 9.848 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.2786, allocations: 43.91 kB / 444.1 MB, free: 9.805 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.2786, allocations: 0 / 444.1 MB, free: 9.805 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2786, allocations: 3.938 kB / 444.1 MB, free: 9.801 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.2787, allocations: 0 / 444.1 MB, free: 9.801 MB / 282.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.0006993/0.2794, allocations: 383.8 kB / 444.5 MB, free: 9.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.2795, allocations: 8.031 kB / 444.5 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.497e-05/0.2795, allocations: 11.91 kB / 444.5 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.2799, allocations: 190.9 kB / 444.7 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.2799, allocations: 11.95 kB / 444.7 MB, free: 9.121 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.28, allocations: 4 kB / 444.7 MB, free: 9.117 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006629/0.2806, allocations: 165.7 kB / 444.9 MB, free: 8.934 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.2807, allocations: 0 / 444.9 MB, free: 8.934 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.2808, allocations: 4 kB / 444.9 MB, free: 8.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.2808, allocations: 4 kB / 444.9 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.2811, allocations: 39.91 kB / 444.9 MB, free: 8.887 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006411/0.2818, allocations: 373.8 kB / 445.3 MB, free: 8.465 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004553/0.2823, allocations: 107.9 kB / 445.4 MB, free: 8.332 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.9e-05/0.2824, allocations: 16.05 kB / 445.4 MB, free: 8.316 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.2824, allocations: 38.5 kB / 445.5 MB, free: 8.27 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 4.819e-06/0.2824, allocations: 0 / 445.5 MB, free: 8.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0007105/0.2832, allocations: 121.7 kB / 445.6 MB, free: 8.145 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.955e-05/0.2833, allocations: 114.7 kB / 445.7 MB, free: 8.008 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.2835, allocations: 137 kB / 445.8 MB, free: 7.863 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.2835, allocations: 29.7 kB / 445.9 MB, free: 7.828 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.2836, allocations: 162.5 kB / 446 MB, free: 7.668 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.571e-05/0.2837, allocations: 11.89 kB / 446 MB, free: 7.656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.478e-06/0.2837, allocations: 4 kB / 446 MB, free: 7.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.35e-05/0.2838, allocations: 314.8 kB / 446.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.284, allocations: 24.02 kB / 446.4 MB, free: 7.312 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.2841, allocations: 67.72 kB / 446.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.2843, allocations: 27.94 kB / 446.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.2844, allocations: 4.188 kB / 446.5 MB, free: 7.188 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004702/0.2848, allocations: 109.5 kB / 446.6 MB, free: 7.074 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.2849, allocations: 7.938 kB / 446.6 MB, free: 7.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.2849, allocations: 4 kB / 446.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.735e-05/0.285, allocations: 0 / 446.6 MB, free: 7.062 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.2852, allocations: 23.98 kB / 446.6 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.2852, allocations: 3.938 kB / 446.6 MB, free: 7.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.2854, allocations: 8.281 kB / 446.6 MB, free: 7.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.2854, allocations: 8 kB / 446.6 MB, free: 7.02 MB / 282.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 0.0001602/0.2856, allocations: 133.5 kB / 446.8 MB, free: 6.879 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002784/0.2859, allocations: 73.75 kB / 446.8 MB, free: 6.801 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.755e-05/0.286, allocations: 16.7 kB / 446.8 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-06/0.286, allocations: 0 / 446.8 MB, free: 6.781 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.286, allocations: 3.938 kB / 446.8 MB, free: 6.777 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.2861, allocations: 4 kB / 446.9 MB, free: 6.773 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004605/0.2865, allocations: 189.5 kB / 447 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2866, allocations: 4 kB / 447 MB, free: 6.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002327/0.2868, allocations: 19.98 kB / 447.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-05/0.2869, allocations: 4 kB / 447.1 MB, free: 6.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.2869, allocations: 4 kB / 447.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.651e-06/0.2869, allocations: 0 / 447.1 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.2869, allocations: 4 kB / 447.1 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007264/0.2877, allocations: 343.6 kB / 447.4 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.2878, allocations: 96.94 kB / 447.5 MB, free: 6.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.2879, allocations: 8 kB / 447.5 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.2882, allocations: 4 kB / 447.5 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.666e-05/0.2883, allocations: 7.984 kB / 447.5 MB, free: 6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.2883, allocations: 4 kB / 447.5 MB, free: 5.996 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001269/0.2884, allocations: 103.3 kB / 447.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.2885, allocations: 0 / 447.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007161/0.2892, allocations: 12 kB / 447.6 MB, free: 5.883 MB / 282.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 0.0001705/0.2894, allocations: 95.23 kB / 447.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004676/0.2899, allocations: 67.86 kB / 447.8 MB, free: 5.711 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/0.2899, allocations: 0 / 447.8 MB, free: 5.711 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.2901, allocations: 15.92 kB / 447.8 MB, free: 5.695 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000714/0.2908, allocations: 56.23 kB / 447.9 MB, free: 5.645 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008075/0.2916, allocations: 251.2 kB / 448.1 MB, free: 5.363 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.292, allocations: 0.7094 MB / 448.8 MB, free: 4.629 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.311e-05/0.292, allocations: 11.44 kB / 448.8 MB, free: 4.621 MB / 282.7 MB Notification: Performance of SimCode: time 1.654e-06/0.2921, allocations: 4 kB / 448.8 MB, free: 4.617 MB / 282.7 MB Notification: Performance of Templates: time 0.004743/0.2968, allocations: 0.8879 MB / 449.7 MB, free: 3.734 MB / 282.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/jenkins1/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