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.001528/0.001528, 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.016/2.016, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001094/0.001094, allocations: 86.72 kB / 267.6 MB, free: 14.04 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.09764/0.09764, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.187e-05/3.213e-05, allocations: 0 / 386 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2964, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.4352, allocations: 78.4 MB / 0.5027 GB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.4356, allocations: 79.95 kB / 0.5028 GB, free: 15.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005964/0.4415, allocations: 1.414 MB / 0.5041 GB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.208e-06/0.4416, allocations: 0 / 0.5041 GB, free: 14.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.4416, allocations: 3.938 kB / 0.5041 GB, free: 14.14 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.0004286/0.4421, allocations: 350.4 kB / 0.5045 GB, free: 13.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.4421, allocations: 8.031 kB / 0.5045 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.18e-05/0.4422, allocations: 7.906 kB / 0.5045 GB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.4424, allocations: 194.8 kB / 0.5047 GB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.4425, allocations: 7.953 kB / 0.5047 GB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.4425, allocations: 8 kB / 0.5047 GB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003023/0.4428, allocations: 109 kB / 0.5048 GB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.4428, allocations: 0 / 0.5048 GB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.4429, allocations: 11.94 kB / 0.5048 GB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.4429, allocations: 0 / 0.5048 GB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.085e-05/0.4429, allocations: 15.94 kB / 0.5048 GB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004606/0.4434, allocations: 273.8 kB / 0.5051 GB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002525/0.4437, allocations: 130.3 kB / 0.5052 GB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.132e-05/0.4438, allocations: 35.05 kB / 0.5052 GB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.4438, allocations: 0 / 0.5052 GB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.4438, allocations: 30.56 kB / 0.5053 GB, free: 12.78 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.4439, allocations: 4 kB / 0.5053 GB, free: 12.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002136/0.4441, allocations: 57.53 kB / 0.5053 GB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.4442, allocations: 81.11 kB / 0.5054 GB, free: 12.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.4443, allocations: 126.5 kB / 0.5055 GB, free: 12.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.4444, allocations: 25.7 kB / 0.5056 GB, free: 12.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/0.4444, allocations: 154.6 kB / 0.5057 GB, free: 12.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.4445, allocations: 3.984 kB / 0.5057 GB, free: 12.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.4445, allocations: 0 / 0.5057 GB, free: 12.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4446, allocations: 318.8 kB / 0.506 GB, free: 11.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.322e-05/0.4446, allocations: 0 / 0.506 GB, free: 11.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.9e-05/0.4447, allocations: 35.48 kB / 0.506 GB, free: 11.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.076e-05/0.4447, allocations: 11.89 kB / 0.5061 GB, free: 11.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4448, allocations: 0 / 0.5061 GB, free: 11.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000133/0.4449, allocations: 57.62 kB / 0.5061 GB, free: 11.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.4449, allocations: 8.625 kB / 0.5061 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.4449, allocations: 128 / 0.5061 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.445, allocations: 11.97 kB / 0.5061 GB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.4451, allocations: 12 kB / 0.5061 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.4452, allocations: 4 kB / 0.5061 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.117e-05/0.4452, allocations: 4 kB / 0.5062 GB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.4453, allocations: 0 / 0.5062 GB, free: 11.82 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.783e-05/0.4454, allocations: 124.6 kB / 0.5063 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.761e-05/0.4455, allocations: 49.55 kB / 0.5063 GB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.982e-05/0.4455, allocations: 12.02 kB / 0.5063 GB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.4455, allocations: 8 kB / 0.5063 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.4456, allocations: 0 / 0.5063 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4456, allocations: 0 / 0.5063 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.4458, allocations: 165.7 kB / 0.5065 GB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.4458, allocations: 7.953 kB / 0.5065 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.851e-05/0.4459, allocations: 11.98 kB / 0.5065 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.4459, allocations: 0 / 0.5065 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.446, allocations: 0 / 0.5065 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.446, allocations: 0 / 0.5065 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.446, allocations: 0 / 0.5065 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001825/0.4462, allocations: 181.9 kB / 0.5067 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.175e-05/0.4463, allocations: 93 kB / 0.5068 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.4463, allocations: 4 kB / 0.5068 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.704e-05/0.4464, allocations: 0 / 0.5068 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.562e-05/0.4465, allocations: 7.984 kB / 0.5068 GB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.4465, allocations: 4 kB / 0.5068 GB, free: 11.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.4466, allocations: 107.2 kB / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4466, allocations: 0 / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002882/0.4469, allocations: 12 kB / 0.5069 GB, free: 10.94 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.0001163/0.447, allocations: 91.25 kB / 0.507 GB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001269/0.4472, allocations: 19.94 kB / 0.507 GB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4472, allocations: 4 kB / 0.507 GB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.331e-05/0.4472, allocations: 256 / 0.507 GB, free: 10.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.4476, allocations: 31.97 kB / 0.507 GB, free: 10.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.4479, allocations: 135.5 kB / 0.5072 GB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.4482, allocations: 0.6985 MB / 0.5079 GB, free: 9.895 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.672e-05/0.4483, allocations: 7.438 kB / 0.5079 GB, free: 9.887 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4483, allocations: 0 / 0.5079 GB, free: 9.887 MB / 362.7 MB Notification: Performance of Templates: time 0.002793/0.4511, allocations: 0.7297 MB / 0.5086 GB, free: 9.16 MB / 362.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/jenkins1/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