Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001094/0.001094, allocations: 181.3 kB / 13.23 MB, free: 2.086 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.573/1.573, allocations: 205.2 MB / 219 MB, free: 9.211 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.0008943/0.0008944, allocations: 89.61 kB / 267.1 MB, free: 9.27 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.07253/0.07253, allocations: 12.59 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.415e-05/3.433e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0858/0.08586, allocations: 50.38 MB / 436.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3095/0.3954, allocations: 77.78 MB / 0.5021 GB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.3956, allocations: 83.12 kB / 0.5022 GB, free: 11.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002484/0.3981, allocations: 1.123 MB / 0.5033 GB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3982, allocations: 0 / 0.5033 GB, free: 11.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.3982, allocations: 3.844 kB / 0.5033 GB, free: 11.42 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002437/0.3984, allocations: 338.7 kB / 0.5036 GB, free: 11.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3985, allocations: 7.688 kB / 0.5036 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.849e-05/0.3985, allocations: 10.7 kB / 0.5036 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.3987, allocations: 188.7 kB / 0.5038 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.3987, allocations: 0 / 0.5038 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.3987, allocations: 16.23 kB / 0.5038 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002137/0.3989, allocations: 111.6 kB / 0.5039 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.3989, allocations: 0 / 0.5039 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.399, allocations: 0 / 0.5039 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.399, allocations: 0 / 0.5039 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.942e-05/0.399, allocations: 15.34 kB / 0.5039 GB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002679/0.3993, allocations: 266.1 kB / 0.5042 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001324/0.3994, allocations: 135 kB / 0.5043 GB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.691e-05/0.3995, allocations: 30.09 kB / 0.5044 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.3995, allocations: 3.875 kB / 0.5044 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.323e-05/0.3995, allocations: 34.5 kB / 0.5044 GB, free: 10.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.3995, allocations: 0 / 0.5044 GB, free: 10.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001307/0.3997, allocations: 53.94 kB / 0.5044 GB, free: 10.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.3997, allocations: 81.05 kB / 0.5045 GB, free: 10.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.658e-05/0.3998, allocations: 127.1 kB / 0.5046 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.3998, allocations: 29.55 kB / 0.5047 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.209e-05/0.3998, allocations: 83.58 kB / 0.5047 GB, free: 9.953 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.069e-05/0.3999, allocations: 3.906 kB / 0.5047 GB, free: 9.949 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-06/0.3999, allocations: 0 / 0.5047 GB, free: 9.949 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.622e-05/0.3999, allocations: 321.1 kB / 0.5051 GB, free: 9.637 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.113e-05/0.3999, allocations: 0 / 0.5051 GB, free: 9.637 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.761e-05/0.4, allocations: 35.03 kB / 0.5051 GB, free: 9.602 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.026e-05/0.4, allocations: 11.5 kB / 0.5051 GB, free: 9.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4, allocations: 0 / 0.5051 GB, free: 9.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.365e-05/0.4001, allocations: 57.89 kB / 0.5052 GB, free: 9.559 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.4001, allocations: 7.688 kB / 0.5052 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4001, allocations: 3.062 kB / 0.5052 GB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.4001, allocations: 4 kB / 0.5052 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.49e-05/0.4002, allocations: 14.38 kB / 0.5052 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.4002, allocations: 0 / 0.5052 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.29e-05/0.4002, allocations: 6.031 kB / 0.5052 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.372e-06/0.4002, allocations: 3.938 kB / 0.5052 GB, free: 9.551 MB / 330.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 4.221e-05/0.4003, allocations: 112.6 kB / 0.5053 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.4003, allocations: 54 kB / 0.5054 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.4004, allocations: 9.328 kB / 0.5054 GB, free: 9.395 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.4004, allocations: 4.188 kB / 0.5054 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4004, allocations: 0 / 0.5054 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.4004, allocations: 3.984 kB / 0.5054 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.4005, allocations: 170.1 kB / 0.5055 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4005, allocations: 3.953 kB / 0.5055 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.099e-05/0.4006, allocations: 10.58 kB / 0.5055 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.4006, allocations: 0 / 0.5055 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.4006, allocations: 0 / 0.5055 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.4006, allocations: 0 / 0.5055 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4006, allocations: 3.812 kB / 0.5055 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.785e-05/0.4007, allocations: 175.6 kB / 0.5057 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.459e-05/0.4007, allocations: 94.19 kB / 0.5058 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.4008, allocations: 10.16 kB / 0.5058 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.037e-05/0.4008, allocations: 3.906 kB / 0.5058 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/0.4009, allocations: 0 / 0.5058 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-06/0.4009, allocations: 8 kB / 0.5058 GB, free: 8.914 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.527e-05/0.4009, allocations: 108.6 kB / 0.5059 GB, free: 8.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4009, allocations: 0 / 0.5059 GB, free: 8.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002485/0.4012, allocations: 3.969 kB / 0.5059 GB, free: 8.84 MB / 330.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 6.703e-05/0.4013, allocations: 94.66 kB / 0.506 GB, free: 8.754 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.435e-05/0.4013, allocations: 18.91 kB / 0.506 GB, free: 8.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4013, allocations: 0 / 0.506 GB, free: 8.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.218e-05/0.4014, allocations: 11.44 kB / 0.5061 GB, free: 8.746 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.4016, allocations: 21.73 kB / 0.5061 GB, free: 8.742 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001818/0.4018, allocations: 100.8 kB / 0.5062 GB, free: 8.656 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.4019, allocations: 0.6892 MB / 0.5068 GB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.307e-05/0.4019, allocations: 4 kB / 0.5068 GB, free: 7.957 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.117e-05/0.402, allocations: 14.69 kB / 0.5069 GB, free: 7.953 MB / 330.7 MB Notification: Performance of SimCode: time 3.4e-07/0.402, allocations: 4.062 kB / 0.5069 GB, free: 7.949 MB / 330.7 MB Notification: Performance of Templates: time 0.002099/0.4041, allocations: 447.7 kB / 0.5073 GB, free: 7.883 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches