Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous") translateModel(ModelicaTest.Blocks.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002297/0.002302, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.056/2.056, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 93.72 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.303/0.303, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.812e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4108/0.4108, allocations: 58.86 MB / 477.1 MB, free: 5.25 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.179/0.5899, allocations: 94.93 MB / 0.5586 GB, free: 4.355 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/0.5902, allocations: 67.97 kB / 0.5587 GB, free: 4.289 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0721/0.6623, allocations: 14.6 MB / 0.5729 GB, free: 5.664 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6624, allocations: 0 / 0.5729 GB, free: 5.664 MB / 411.1 MB Notification: Performance of Transformations before backend: time 9.999e-05/0.6625, allocations: 23.94 kB / 0.573 GB, free: 5.641 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.00305/0.6656, allocations: 0.9467 MB / 0.5739 GB, free: 4.645 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/0.6656, allocations: 12.02 kB / 0.5739 GB, free: 4.633 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003558/0.666, allocations: 98.86 kB / 0.574 GB, free: 4.535 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001896/0.6679, allocations: 0.559 MB / 0.5745 GB, free: 3.938 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.075e-05/0.668, allocations: 16 kB / 0.5745 GB, free: 3.922 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.6682, allocations: 35.98 kB / 0.5746 GB, free: 3.887 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001197/0.6694, allocations: 330.5 kB / 0.5749 GB, free: 3.562 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.6707, allocations: 0.49 MB / 0.5754 GB, free: 3.016 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.6708, allocations: 3.906 kB / 0.5754 GB, free: 3.012 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.899e-05/0.6709, allocations: 4 kB / 0.5754 GB, free: 3.008 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.327e-05/0.6709, allocations: 15.94 kB / 0.5754 GB, free: 2.992 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006546/0.6775, allocations: 2.616 MB / 0.578 GB, free: 296 kB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.6789, allocations: 455.9 kB / 0.5784 GB, free: 15.82 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004932/0.6794, allocations: 190.5 kB / 0.5786 GB, free: 15.62 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.643e-05/0.6795, allocations: 12.03 kB / 0.5786 GB, free: 15.61 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.6795, allocations: 34.56 kB / 0.5786 GB, free: 15.57 MB / 427.1 MB Notification: Performance of pre-optimization done (n=43): time 3.296e-06/0.6795, allocations: 0 / 0.5786 GB, free: 15.57 MB / 427.1 MB Notification: Performance of matching and sorting (n=44): time 0.002338/0.6819, allocations: 0.7757 MB / 0.5794 GB, free: 14.78 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.868e-05/0.682, allocations: 136.5 kB / 0.5795 GB, free: 14.62 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009907/0.683, allocations: 0.4958 MB / 0.58 GB, free: 14.12 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.6831, allocations: 25.7 kB / 0.58 GB, free: 14.09 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003705/0.6835, allocations: 371.1 kB / 0.5804 GB, free: 13.72 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002415/0.6838, allocations: 165.6 kB / 0.5805 GB, free: 13.55 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.6838, allocations: 0 / 0.5805 GB, free: 13.55 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.684, allocations: 338.9 kB / 0.5808 GB, free: 13.21 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006041/0.6846, allocations: 193.5 kB / 0.581 GB, free: 13.02 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007132/0.6854, allocations: 345 kB / 0.5814 GB, free: 12.62 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006388/0.686, allocations: 237.1 kB / 0.5816 GB, free: 12.39 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.686, allocations: 0 / 0.5816 GB, free: 12.39 MB / 427.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001597/0.6876, allocations: 0.5692 MB / 0.5821 GB, free: 11.81 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008983/0.6886, allocations: 1.75 MB / 0.5838 GB, free: 9.93 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.6886, allocations: 4 kB / 0.5839 GB, free: 9.926 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.495e-05/0.6887, allocations: 8 kB / 0.5839 GB, free: 9.918 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.6901, allocations: 159.8 kB / 0.584 GB, free: 9.762 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.385e-05/0.6901, allocations: 11.94 kB / 0.584 GB, free: 9.75 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.6912, allocations: 87.53 kB / 0.5841 GB, free: 9.664 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.918e-05/0.6913, allocations: 27.98 kB / 0.5841 GB, free: 9.637 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.6914, allocations: 4 kB / 0.5841 GB, free: 9.633 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001513/0.6929, allocations: 0.4992 MB / 0.5846 GB, free: 9.133 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.6929, allocations: 4 kB / 0.5846 GB, free: 9.129 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.693, allocations: 15.94 kB / 0.5846 GB, free: 9.113 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.6943, allocations: 156.4 kB / 0.5848 GB, free: 8.961 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.6943, allocations: 15.89 kB / 0.5848 GB, free: 8.945 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006721/0.695, allocations: 59.64 kB / 0.5849 GB, free: 8.887 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/0.6951, allocations: 31.98 kB / 0.5849 GB, free: 8.855 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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 0.0002374/0.6953, allocations: 124.8 kB / 0.585 GB, free: 8.727 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003104/0.6956, allocations: 67.16 kB / 0.5851 GB, free: 8.66 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002819/0.6959, allocations: 81.78 kB / 0.5852 GB, free: 8.578 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.696, allocations: 4 kB / 0.5852 GB, free: 8.574 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.696, allocations: 4 kB / 0.5852 GB, free: 8.57 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.696, allocations: 7.938 kB / 0.5852 GB, free: 8.562 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.6979, allocations: 0.7523 MB / 0.5859 GB, free: 7.766 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.6979, allocations: 0 / 0.5859 GB, free: 7.766 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/0.6993, allocations: 119.8 kB / 0.586 GB, free: 7.648 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.117e-05/0.6993, allocations: 0 / 0.586 GB, free: 7.648 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-05/0.6994, allocations: 15.94 kB / 0.586 GB, free: 7.633 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.835e-06/0.6995, allocations: 7.984 kB / 0.586 GB, free: 7.625 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/0.6995, allocations: 7.953 kB / 0.5861 GB, free: 7.617 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.7015, allocations: 0.9492 MB / 0.587 GB, free: 6.633 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004616/0.702, allocations: 200.1 kB / 0.5872 GB, free: 6.418 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.7022, allocations: 8 kB / 0.5872 GB, free: 6.41 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.7033, allocations: 55.94 kB / 0.5872 GB, free: 6.355 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.7035, allocations: 43.88 kB / 0.5873 GB, free: 6.312 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.316e-05/0.7035, allocations: 12 kB / 0.5873 GB, free: 6.301 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0008018/0.7043, allocations: 383.1 kB / 0.5876 GB, free: 5.934 MB / 427.1 MB Notification: Performance of sort global known variables: time 7.32e-07/0.7044, allocations: 0 / 0.5876 GB, free: 5.934 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001297/0.7057, allocations: 172 kB / 0.5878 GB, free: 5.766 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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.0002616/0.706, allocations: 111 kB / 0.5879 GB, free: 5.648 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.002188/0.7082, allocations: 0.7399 MB / 0.5886 GB, free: 4.91 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.7082, allocations: 0 / 0.5886 GB, free: 4.91 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006722/0.7089, allocations: 214.1 kB / 0.5888 GB, free: 4.703 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.7106, allocations: 158.8 kB / 0.589 GB, free: 4.547 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.7145, allocations: 1.222 MB / 0.5902 GB, free: 3.281 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008108/0.7154, allocations: 0.9731 MB / 0.5911 GB, free: 2.277 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004862/0.7159, allocations: 47.44 kB / 0.5912 GB, free: 2.23 MB / 427.1 MB Notification: Performance of SimCode: time 1.312e-06/0.7159, allocations: 0 / 0.5912 GB, free: 2.23 MB / 427.1 MB Notification: Performance of Templates: time 0.02319/0.7391, allocations: 8.461 MB / 0.5994 GB, free: 9.785 MB / 443.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches