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.00218/0.00218, allocations: 181 kB / 13.7 MB, free: 1.625 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.11/2.11, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001012/0.001012, allocations: 86.72 kB / 267.6 MB, free: 14.03 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.09962/0.09962, allocations: 12.6 MB / 328.2 MB, free: 11.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.743e-05/3.753e-05, allocations: 7.984 kB / 386 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3073, allocations: 50.37 MB / 436.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.4462, allocations: 77.79 MB / 0.5021 GB, free: 252 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.4465, allocations: 75.94 kB / 0.5022 GB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00417/0.4507, allocations: 1.119 MB / 0.5033 GB, free: 15.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.4507, allocations: 7.922 kB / 0.5033 GB, free: 15.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.4508, allocations: 4 kB / 0.5033 GB, free: 15.04 MB / 362.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.0003921/0.4512, allocations: 338.5 kB / 0.5036 GB, free: 14.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.4512, allocations: 8.031 kB / 0.5036 GB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.078e-05/0.4513, allocations: 7.906 kB / 0.5036 GB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.4515, allocations: 188.8 kB / 0.5038 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.4516, allocations: 15.98 kB / 0.5038 GB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.704e-05/0.4516, allocations: 3.953 kB / 0.5038 GB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.4519, allocations: 109 kB / 0.5039 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.4519, allocations: 0 / 0.5039 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.4519, allocations: 0 / 0.5039 GB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.4519, allocations: 4 kB / 0.5039 GB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.355e-05/0.452, allocations: 15.94 kB / 0.5039 GB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004336/0.4525, allocations: 265.8 kB / 0.5042 GB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.4527, allocations: 138.2 kB / 0.5043 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.823e-05/0.4528, allocations: 21.78 kB / 0.5043 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.4528, allocations: 7.922 kB / 0.5043 GB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.4528, allocations: 38.56 kB / 0.5044 GB, free: 13.69 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.663e-06/0.4528, allocations: 0 / 0.5044 GB, free: 13.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001893/0.453, allocations: 53.62 kB / 0.5044 GB, free: 13.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.4531, allocations: 85.14 kB / 0.5045 GB, free: 13.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001482/0.4533, allocations: 118 kB / 0.5046 GB, free: 13.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.4533, allocations: 29.7 kB / 0.5046 GB, free: 13.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.161e-05/0.4534, allocations: 150.6 kB / 0.5048 GB, free: 13.22 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.129e-05/0.4534, allocations: 7.891 kB / 0.5048 GB, free: 13.21 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-06/0.4534, allocations: 4 kB / 0.5048 GB, free: 13.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4536, allocations: 314.8 kB / 0.5051 GB, free: 12.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.757e-05/0.4536, allocations: 0 / 0.5051 GB, free: 12.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.379e-05/0.4537, allocations: 35.44 kB / 0.5051 GB, free: 12.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.327e-05/0.4537, allocations: 13.02 kB / 0.5051 GB, free: 12.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4537, allocations: 0 / 0.5051 GB, free: 12.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001156/0.4538, allocations: 53.62 kB / 0.5052 GB, free: 12.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.4539, allocations: 8.125 kB / 0.5052 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.4539, allocations: 4 kB / 0.5052 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.4539, allocations: 0 / 0.5052 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.413e-05/0.454, allocations: 11.98 kB / 0.5052 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.454, allocations: 0 / 0.5052 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.376e-05/0.4541, allocations: 4 kB / 0.5052 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.4541, allocations: 4 kB / 0.5052 GB, free: 12.75 MB / 362.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 () * 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 8.227e-05/0.4542, allocations: 120.6 kB / 0.5053 GB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.85e-05/0.4543, allocations: 49.59 kB / 0.5054 GB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.687e-05/0.4544, allocations: 12.03 kB / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.4544, allocations: 0 / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4544, allocations: 0 / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4544, allocations: 0 / 0.5054 GB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002198/0.4547, allocations: 169.8 kB / 0.5056 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4547, allocations: 3.953 kB / 0.5056 GB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.176e-05/0.4548, allocations: 11.98 kB / 0.5056 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.4548, allocations: 3.984 kB / 0.5056 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.4548, allocations: 0 / 0.5056 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.4548, allocations: 4 kB / 0.5056 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4548, allocations: 11.94 kB / 0.5056 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.455, allocations: 170 kB / 0.5058 GB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.655e-05/0.4551, allocations: 92.94 kB / 0.5059 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.4552, allocations: 0 / 0.5059 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.793e-05/0.4553, allocations: 8 kB / 0.5059 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.579e-05/0.4553, allocations: 11.98 kB / 0.5059 GB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.4553, allocations: 0 / 0.5059 GB, free: 11.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.431e-05/0.4554, allocations: 100.6 kB / 0.506 GB, free: 11.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4554, allocations: 0 / 0.506 GB, free: 11.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002759/0.4557, allocations: 8 kB / 0.506 GB, free: 11.88 MB / 362.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 () * 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 0.0001246/0.4559, allocations: 95.23 kB / 0.5061 GB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001016/0.456, allocations: 19.94 kB / 0.5061 GB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.456, allocations: 256 / 0.5061 GB, free: 11.76 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.738e-05/0.456, allocations: 8 kB / 0.5061 GB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.4564, allocations: 27.91 kB / 0.5061 GB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003163/0.4567, allocations: 123.5 kB / 0.5062 GB, free: 11.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/0.4571, allocations: 0.6965 MB / 0.5069 GB, free: 10.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.079e-05/0.4571, allocations: 11.44 kB / 0.5069 GB, free: 10.84 MB / 362.7 MB Notification: Performance of SimCode: time 8.02e-07/0.4571, allocations: 0 / 0.5069 GB, free: 10.84 MB / 362.7 MB Notification: Performance of Templates: time 0.002552/0.4597, allocations: 0.6709 MB / 0.5076 GB, free: 10.17 MB / 362.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/jenkins1/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