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/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/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.001658/0.001658, allocations: 177.5 kB / 17.46 MB, free: 4.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.693/2.693, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.001122/0.001122, allocations: 89.42 kB / 272 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.129/0.129, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004452, allocations: 16 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1176, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4902/0.6079, allocations: 78.19 MB / 0.509 GB, free: 13.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003302/0.6083, allocations: 74.55 kB / 0.5091 GB, free: 13.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005225/0.6136, allocations: 1.944 MB / 0.511 GB, free: 12.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.921e-06/0.6136, allocations: 4 kB / 0.511 GB, free: 12.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.6137, allocations: 0 / 0.511 GB, free: 12.48 MB / 330.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.0004343/0.6141, allocations: 380.8 kB / 0.5113 GB, free: 12.09 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.6142, allocations: 11.67 kB / 0.5113 GB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.841e-05/0.6142, allocations: 8.688 kB / 0.5113 GB, free: 12.08 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.6144, allocations: 199 kB / 0.5115 GB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.6145, allocations: 8.219 kB / 0.5115 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.6145, allocations: 11.94 kB / 0.5116 GB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004638/0.615, allocations: 177.4 kB / 0.5117 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.615, allocations: 192 / 0.5117 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.615, allocations: 7.938 kB / 0.5117 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.6151, allocations: 0 / 0.5117 GB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.6152, allocations: 33.55 kB / 0.5118 GB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005013/0.6157, allocations: 379.4 kB / 0.5121 GB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.616, allocations: 116.1 kB / 0.5122 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.396e-05/0.6161, allocations: 56.53 kB / 0.5123 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.6161, allocations: 11.11 kB / 0.5123 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.6162, allocations: 34.5 kB / 0.5123 GB, free: 11.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 1.704e-06/0.6162, allocations: 0 / 0.5123 GB, free: 11.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003426/0.6165, allocations: 129 kB / 0.5125 GB, free: 11.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/0.6166, allocations: 114.1 kB / 0.5126 GB, free: 11.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001125/0.6167, allocations: 133.8 kB / 0.5127 GB, free: 10.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.6167, allocations: 29.64 kB / 0.5127 GB, free: 10.88 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.012e-05/0.6168, allocations: 91.14 kB / 0.5128 GB, free: 10.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.6168, allocations: 7.891 kB / 0.5128 GB, free: 10.79 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.6168, allocations: 7.438 kB / 0.5128 GB, free: 10.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.6169, allocations: 322.2 kB / 0.5131 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.761e-05/0.617, allocations: 15.23 kB / 0.5131 GB, free: 10.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.978e-05/0.617, allocations: 67.72 kB / 0.5132 GB, free: 10.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.6172, allocations: 104.9 kB / 0.5133 GB, free: 10.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.6172, allocations: 0 / 0.5133 GB, free: 10.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001678/0.6174, allocations: 121.8 kB / 0.5134 GB, free: 10.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.6174, allocations: 3.844 kB / 0.5134 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.6174, allocations: 3.844 kB / 0.5134 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.6174, allocations: 3.844 kB / 0.5134 GB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.86e-05/0.6175, allocations: 23.3 kB / 0.5135 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.6175, allocations: 3.844 kB / 0.5135 GB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.797e-05/0.6176, allocations: 7.781 kB / 0.5135 GB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.6176, allocations: 7.156 kB / 0.5135 GB, free: 10.21 MB / 330.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 9.716e-05/0.6177, allocations: 133.7 kB / 0.5136 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.6178, allocations: 85.11 kB / 0.5137 GB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.6179, allocations: 15.66 kB / 0.5137 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.6179, allocations: 0 / 0.5137 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.6179, allocations: 3.844 kB / 0.5137 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.6179, allocations: 0 / 0.5137 GB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.6181, allocations: 179.1 kB / 0.5139 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.6182, allocations: 3.844 kB / 0.5139 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.068e-05/0.6182, allocations: 19.67 kB / 0.5139 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.6182, allocations: 3.984 kB / 0.5139 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.6183, allocations: 7.938 kB / 0.5139 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.6183, allocations: 3.844 kB / 0.5139 GB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6183, allocations: 3.938 kB / 0.5139 GB, free: 9.809 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004124/0.6187, allocations: 318.5 kB / 0.5142 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/0.6188, allocations: 96.22 kB / 0.5143 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.6188, allocations: 14.88 kB / 0.5143 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.12e-05/0.6189, allocations: 7.844 kB / 0.5143 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.734e-05/0.619, allocations: 3.984 kB / 0.5143 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.619, allocations: 3.844 kB / 0.5143 GB, free: 9.438 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.6191, allocations: 108 kB / 0.5144 GB, free: 9.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6191, allocations: 0 / 0.5144 GB, free: 9.359 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002702/0.6194, allocations: 11.69 kB / 0.5145 GB, free: 9.355 MB / 330.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.0001316/0.6195, allocations: 101.8 kB / 0.5145 GB, free: 9.262 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002265/0.6197, allocations: 60.92 kB / 0.5146 GB, free: 9.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6198, allocations: 0.5625 kB / 0.5146 GB, free: 9.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.538e-05/0.6198, allocations: 19.55 kB / 0.5146 GB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005198/0.6203, allocations: 41.89 kB / 0.5147 GB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005183/0.6209, allocations: 267.2 kB / 0.5149 GB, free: 9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002894/0.6212, allocations: 0.6997 MB / 0.5156 GB, free: 8.293 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.429e-05/0.6212, allocations: 11.28 kB / 0.5156 GB, free: 8.285 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.6212, allocations: 0 / 0.5156 GB, free: 8.285 MB / 330.7 MB Notification: Performance of Templates: time 0.002896/0.6241, allocations: 0.9004 MB / 0.5165 GB, free: 7.84 MB / 330.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