Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 196.8 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008768/0.0008765, allocations: 98.33 kB / 297.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002751/0.0002752, allocations: 8 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.306, allocations: 51.31 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.4359, allocations: 77.8 MB / 487.2 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.4362, allocations: 79.95 kB / 487.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004439/0.4406, allocations: 1.575 MB / 488.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.4407, allocations: 2.438 kB / 488.8 MB, free: 12.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.4407, allocations: 0 / 488.8 MB, free: 12.08 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.0004884/0.4412, allocations: 367.2 kB / 489.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.4413, allocations: 12.03 kB / 489.2 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.4415, allocations: 24.83 kB / 489.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.4417, allocations: 196.1 kB / 489.4 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.4417, allocations: 384 / 489.4 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.4418, allocations: 8.375 kB / 489.4 MB, free: 11.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003411/0.4421, allocations: 117.6 kB / 489.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4421, allocations: 192 / 489.6 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.4422, allocations: 3.938 kB / 489.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.4422, allocations: 0 / 489.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.739e-05/0.4423, allocations: 31.91 kB / 489.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.4428, allocations: 273.7 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002692/0.443, allocations: 146.1 kB / 490 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.229e-05/0.4431, allocations: 33.77 kB / 490 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.4432, allocations: 4 kB / 490 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.4432, allocations: 34.56 kB / 490.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.463e-06/0.4432, allocations: 0 / 490.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002948/0.4435, allocations: 77.61 kB / 490.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/0.4436, allocations: 89.23 kB / 490.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.4437, allocations: 148.3 kB / 490.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.4437, allocations: 25.7 kB / 490.4 MB, free: 10.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.883e-05/0.4438, allocations: 84.14 kB / 490.5 MB, free: 10.19 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.4438, allocations: 4 kB / 490.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-06/0.4438, allocations: 3.938 kB / 490.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4439, allocations: 318.8 kB / 490.8 MB, free: 9.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.298e-05/0.444, allocations: 12 kB / 490.8 MB, free: 9.848 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.76e-05/0.4441, allocations: 39.36 kB / 490.9 MB, free: 9.797 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.322e-05/0.4442, allocations: 51.42 kB / 490.9 MB, free: 9.734 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4442, allocations: 7.875 kB / 490.9 MB, free: 9.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001359/0.4443, allocations: 73.52 kB / 491 MB, free: 9.648 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.4443, allocations: 8 kB / 491 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.4443, allocations: 0 / 491 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4444, allocations: 128 / 491 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.265e-05/0.4444, allocations: 15.98 kB / 491 MB, free: 9.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.4445, allocations: 8 kB / 491 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.447e-05/0.4445, allocations: 7.938 kB / 491 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.296e-06/0.4445, allocations: 0 / 491 MB, free: 9.609 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 () * Number of clocked 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 9.109e-05/0.4446, allocations: 121.7 kB / 491.1 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.421e-05/0.4447, allocations: 49.59 kB / 491.2 MB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.4448, allocations: 12.25 kB / 491.2 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.4448, allocations: 7.984 kB / 491.2 MB, free: 9.398 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.4448, allocations: 4 kB / 491.2 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.4448, allocations: 0 / 491.2 MB, free: 9.395 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.445, allocations: 169.6 kB / 491.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.445, allocations: 0 / 491.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.748e-05/0.4451, allocations: 8 kB / 491.4 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.4451, allocations: 4 kB / 491.4 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.4451, allocations: 3.984 kB / 491.4 MB, free: 9.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.4451, allocations: 3.938 kB / 491.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4451, allocations: 0 / 491.4 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001898/0.4453, allocations: 180.5 kB / 491.6 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.351e-05/0.4454, allocations: 93 kB / 491.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.4454, allocations: 0 / 491.7 MB, free: 8.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.076e-05/0.4455, allocations: 4 kB / 491.7 MB, free: 8.852 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.091e-05/0.4455, allocations: 8.031 kB / 491.7 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.4456, allocations: 4 kB / 491.7 MB, free: 8.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.063e-05/0.4456, allocations: 107.2 kB / 491.8 MB, free: 8.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4456, allocations: 0 / 491.8 MB, free: 8.734 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002305/0.4459, allocations: 4 kB / 491.8 MB, free: 8.73 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 () * Number of clocked 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.0001343/0.446, allocations: 99.25 kB / 491.9 MB, free: 8.621 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001468/0.4462, allocations: 44.09 kB / 491.9 MB, free: 8.578 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4462, allocations: 0 / 491.9 MB, free: 8.578 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.838e-05/0.4462, allocations: 8 kB / 491.9 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.4466, allocations: 38.06 kB / 492 MB, free: 8.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.447, allocations: 185.6 kB / 492.2 MB, free: 8.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.4475, allocations: 0.6965 MB / 492.9 MB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.916e-05/0.4475, allocations: 0 / 492.9 MB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.4476, allocations: 15.42 kB / 492.9 MB, free: 7.582 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4476, allocations: 0 / 492.9 MB, free: 7.582 MB / 362.7 MB Notification: Performance of Templates: time 0.002901/0.4505, allocations: 466.3 kB / 493.3 MB, free: 7.137 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample1/Sample1.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches