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.0008635/0.0008635, allocations: 180.1 kB / 16.45 MB, free: 5.551 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.504/1.504, allocations: 205.4 MB / 222.6 MB, free: 9.117 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.0007607/0.0007607, allocations: 97.8 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.07468/0.07468, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003918, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08106/0.08147, allocations: 50.38 MB / 442.4 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample3): time 0.001404/0.08293, allocations: 1.365 MB / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003181/0.08326, allocations: 171.4 kB / 443.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.085e-05/0.08335, allocations: 4 kB / 443.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.06e-05/0.08339, allocations: 7.922 kB / 443.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.08352, allocations: 3.938 kB / 443.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.08376, allocations: 43.89 kB / 444 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.127e-05/0.08385, allocations: 47.86 kB / 444 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.358e-05/0.08395, allocations: 23.98 kB / 444 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.048e-05/0.08398, allocations: 23.91 kB / 444.1 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.367e-05/0.08403, allocations: 15.86 kB / 444.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.08405, allocations: 0 / 444.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.138e-05/0.08407, allocations: 4 kB / 444.1 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.954e-05/0.08411, allocations: 11.94 kB / 444.1 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.035e-05/0.08413, allocations: 37.64 kB / 444.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.531e-05/0.0842, allocations: 47.91 kB / 444.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.08421, allocations: 0 / 444.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.08422, allocations: 0 / 444.2 MB, free: 14.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.08423, allocations: 0 / 444.2 MB, free: 14.65 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.0003542/0.08459, allocations: 379.3 kB / 444.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.08462, allocations: 8.031 kB / 444.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.293e-05/0.08466, allocations: 11.91 kB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001426/0.08481, allocations: 190.8 kB / 444.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.08483, allocations: 19.88 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.08485, allocations: 8 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.08515, allocations: 159.1 kB / 444.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.08517, allocations: 8 kB / 444.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.08518, allocations: 0 / 444.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.08519, allocations: 3.938 kB / 444.9 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.0853, allocations: 39.97 kB / 445 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002807/0.08559, allocations: 373.8 kB / 445.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.08579, allocations: 119.8 kB / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.02e-05/0.08588, allocations: 70.61 kB / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.08591, allocations: 0 / 445.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.08593, allocations: 38.5 kB / 445.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 9.81e-07/0.08593, allocations: 0 / 445.6 MB, free: 13.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002815/0.08622, allocations: 125.5 kB / 445.7 MB, free: 12.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.08627, allocations: 110.8 kB / 445.8 MB, free: 12.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.428e-05/0.08636, allocations: 140 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.686e-06/0.08637, allocations: 25.7 kB / 446 MB, free: 12.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.949e-05/0.08641, allocations: 92.12 kB / 446 MB, free: 12.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.08643, allocations: 16.05 kB / 446.1 MB, free: 12.49 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-06/0.08644, allocations: 0 / 446.1 MB, free: 12.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.758e-05/0.08649, allocations: 327 kB / 446.4 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.666e-05/0.08654, allocations: 19.98 kB / 446.4 MB, free: 12.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.407e-05/0.08661, allocations: 71.66 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.399e-05/0.08667, allocations: 24 kB / 446.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.08668, allocations: 0 / 446.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001514/0.08683, allocations: 113.5 kB / 446.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.08685, allocations: 7.938 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.08686, allocations: 8 kB / 446.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.08688, allocations: 4 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.327e-05/0.08695, allocations: 23.92 kB / 446.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.08696, allocations: 4.281 kB / 446.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.795e-05/0.08702, allocations: 11.91 kB / 446.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.184e-06/0.08703, allocations: 4 kB / 446.7 MB, free: 11.84 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.214e-05/0.0871, allocations: 137.5 kB / 446.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-05/0.0872, allocations: 69.59 kB / 446.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.08e-05/0.08724, allocations: 16.7 kB / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.08725, allocations: 0 / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.08726, allocations: 4 kB / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.08726, allocations: 0 / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.08744, allocations: 185.6 kB / 447.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.08745, allocations: 4 kB / 447.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.062e-05/0.08753, allocations: 23.92 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.08754, allocations: 0 / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.08755, allocations: 4 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.08756, allocations: 4.188 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.08757, allocations: 0 / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002643/0.08783, allocations: 320.1 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.251e-05/0.08789, allocations: 97 kB / 447.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.08791, allocations: 7.938 kB / 447.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.271e-05/0.08801, allocations: 7.953 kB / 447.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.08804, allocations: 4 kB / 447.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.08805, allocations: 7.984 kB / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.33e-05/0.0881, allocations: 105.8 kB / 447.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08811, allocations: 0 / 447.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000239/0.08835, allocations: 15.94 kB / 447.7 MB, free: 10.74 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 6.743e-05/0.08842, allocations: 95.25 kB / 447.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000149/0.08858, allocations: 68.03 kB / 447.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.08859, allocations: 0 / 447.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.583e-05/0.08863, allocations: 11.98 kB / 447.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.08903, allocations: 43.95 kB / 447.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003056/0.08935, allocations: 255.1 kB / 448.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.08948, allocations: 0.7004 MB / 448.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.263e-05/0.08951, allocations: 11.44 kB / 448.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of SimCode: time 2.81e-07/0.08951, allocations: 0 / 448.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of Templates: time 0.001739/0.09126, allocations: 0.9112 MB / 449.7 MB, free: 8.582 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