Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008124/0.0008124, allocations: 183 kB / 18.09 MB, free: 3.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.154/1.154, allocations: 223.3 MB / 242.1 MB, free: 9.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007894/0.0007894, allocations: 90.25 kB / 293.3 MB, free: 10.53 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2756/0.2756, allocations: 44.15 MB / 388.5 MB, free: 38.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003505, allocations: 8 kB / 461.1 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2525, allocations: 61.87 MB / 0.5107 GB, free: 37.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.353, allocations: 96.56 MB / 0.605 GB, free: 14.49 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.3532, allocations: 71.95 kB / 0.6051 GB, free: 14.43 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03922/0.3925, allocations: 14.72 MB / 0.6195 GB, free: 15.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3925, allocations: 0 / 0.6195 GB, free: 15.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.957e-05/0.3926, allocations: 27.94 kB / 0.6195 GB, free: 15.64 MB / 442.7 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.002113/0.3947, allocations: 1.067 MB / 0.6205 GB, free: 14.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.3947, allocations: 19.97 kB / 0.6205 GB, free: 14.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001878/0.3949, allocations: 91.81 kB / 0.6206 GB, free: 14.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.396, allocations: 0.61 MB / 0.6212 GB, free: 13.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.3961, allocations: 37.38 kB / 0.6213 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.747e-05/0.3962, allocations: 60.27 kB / 0.6213 GB, free: 13.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.3972, allocations: 0.6297 MB / 0.6219 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.3972, allocations: 8.125 kB / 0.6219 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.722e-05/0.3973, allocations: 19.94 kB / 0.622 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3973, allocations: 12 kB / 0.622 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.3984, allocations: 0.5001 MB / 0.6225 GB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/0.4016, allocations: 2.702 MB / 0.6251 GB, free: 9.645 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.4026, allocations: 0.5741 MB / 0.6257 GB, free: 9.043 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.4032, allocations: 274.4 kB / 0.6259 GB, free: 8.766 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.4032, allocations: 12 kB / 0.6259 GB, free: 8.754 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.4032, allocations: 38.56 kB / 0.626 GB, free: 8.707 MB / 442.7 MB Notification: Performance of pre-optimization done (n=43): time 1.593e-06/0.4033, allocations: 0 / 0.626 GB, free: 8.707 MB / 442.7 MB Notification: Performance of matching and sorting (n=44): time 0.002219/0.4055, allocations: 1.21 MB / 0.6271 GB, free: 7.488 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.4055, allocations: 136.5 kB / 0.6273 GB, free: 7.324 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007512/0.4063, allocations: 0.6451 MB / 0.6279 GB, free: 6.672 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/0.4064, allocations: 41.69 kB / 0.6279 GB, free: 6.625 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.4066, allocations: 348.1 kB / 0.6283 GB, free: 6.277 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.4067, allocations: 177.5 kB / 0.6284 GB, free: 6.102 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.4067, allocations: 12 kB / 0.6285 GB, free: 6.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4068, allocations: 337.9 kB / 0.6288 GB, free: 5.754 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005961/0.4075, allocations: 285.1 kB / 0.6291 GB, free: 5.477 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006991/0.4082, allocations: 448.6 kB / 0.6295 GB, free: 4.969 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.4094, allocations: 0.7173 MB / 0.6302 GB, free: 4.191 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4094, allocations: 0 / 0.6302 GB, free: 4.191 MB / 442.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001492/0.4109, allocations: 0.8424 MB / 0.631 GB, free: 3.344 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000104/0.411, allocations: 224.9 kB / 0.6312 GB, free: 3.062 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.411, allocations: 11.98 kB / 0.6312 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.4111, allocations: 11.94 kB / 0.6312 GB, free: 3.039 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006196/0.4117, allocations: 163.7 kB / 0.6314 GB, free: 2.879 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.4117, allocations: 8 kB / 0.6314 GB, free: 2.871 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004898/0.4122, allocations: 95.62 kB / 0.6315 GB, free: 2.777 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.4122, allocations: 20 kB / 0.6315 GB, free: 2.758 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.578e-06/0.4123, allocations: 4 kB / 0.6315 GB, free: 2.754 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001253/0.4135, allocations: 0.7178 MB / 0.6322 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4135, allocations: 7.938 kB / 0.6322 GB, free: 2.027 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.322e-06/0.4135, allocations: 8.531 kB / 0.6322 GB, free: 2.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005616/0.4141, allocations: 151.8 kB / 0.6324 GB, free: 1.871 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.4141, allocations: 11.98 kB / 0.6324 GB, free: 1.859 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00047/0.4146, allocations: 91.64 kB / 0.6325 GB, free: 1.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.4147, allocations: 27.98 kB / 0.6325 GB, free: 1.742 MB / 442.7 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 () * Number of clocked 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.0002742/0.4149, allocations: 294.1 kB / 0.6328 GB, free: 1.445 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.4151, allocations: 75.06 kB / 0.6329 GB, free: 1.371 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.4152, allocations: 86.2 kB / 0.6329 GB, free: 1.281 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.4152, allocations: 8 kB / 0.633 GB, free: 1.273 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4152, allocations: 7.938 kB / 0.633 GB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4152, allocations: 0 / 0.633 GB, free: 1.266 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.4163, allocations: 0.8375 MB / 0.6338 GB, free: 380 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.4163, allocations: 3.938 kB / 0.6338 GB, free: 376 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.4169, allocations: 119.9 kB / 0.6339 GB, free: 256 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.604e-06/0.417, allocations: 0 / 0.6339 GB, free: 256 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.417, allocations: 19.98 kB / 0.6339 GB, free: 236 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.417, allocations: 0 / 0.6339 GB, free: 236 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.417, allocations: 7.938 kB / 0.6339 GB, free: 228 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/0.4189, allocations: 1.203 MB / 0.6351 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.4191, allocations: 204.1 kB / 0.6353 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.581e-05/0.4192, allocations: 12 kB / 0.6353 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.4197, allocations: 67.88 kB / 0.6354 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.4198, allocations: 43.88 kB / 0.6354 GB, free: 14.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.4199, allocations: 12 kB / 0.6354 GB, free: 14.65 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005589/0.4204, allocations: 463 kB / 0.6359 GB, free: 14.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4204, allocations: 0 / 0.6359 GB, free: 14.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0006643/0.4211, allocations: 196 kB / 0.636 GB, free: 14.01 MB / 458.7 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 () * Number of clocked 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.0001352/0.4212, allocations: 123.2 kB / 0.6362 GB, free: 13.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.4232, allocations: 1.028 MB / 0.6372 GB, free: 12.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4232, allocations: 0 / 0.6372 GB, free: 12.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005809/0.4238, allocations: 308.6 kB / 0.6375 GB, free: 12.55 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009847/0.4248, allocations: 179.1 kB / 0.6376 GB, free: 12.39 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.427, allocations: 1.715 MB / 0.6393 GB, free: 10.63 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.4275, allocations: 0.9458 MB / 0.6402 GB, free: 9.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004912/0.428, allocations: 152.8 kB / 0.6404 GB, free: 9.508 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.4281, allocations: 43.42 kB / 0.6404 GB, free: 9.465 MB / 458.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4281, allocations: 0 / 0.6404 GB, free: 9.465 MB / 458.7 MB Notification: Performance of Templates: time 0.01066/0.4388, allocations: 6.751 MB / 0.647 GB, free: 2.777 MB / 458.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches