Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.Continuous_SteadyState,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_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState") translateModel(ModelicaTest.Blocks.Continuous_SteadyState,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_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 199.2 kB / 16.79 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 226.5 MB / 244.1 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008328/0.000833, allocations: 92.44 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3481/0.3481, allocations: 44.82 MB / 393 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002789, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.3873, allocations: 62.94 MB / 0.5165 GB, free: 37.02 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1811/0.5685, allocations: 97.73 MB / 0.6119 GB, free: 7.637 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.5689, allocations: 63.97 kB / 0.612 GB, free: 7.574 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1012/0.6701, allocations: 20.21 MB / 0.6317 GB, free: 3.293 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.318e-06/0.6702, allocations: 0 / 0.6317 GB, free: 3.293 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001519/0.6704, allocations: 27.88 kB / 0.6317 GB, free: 3.266 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.004346/0.6748, allocations: 1.086 MB / 0.6328 GB, free: 2.125 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/0.6748, allocations: 8.031 kB / 0.6328 GB, free: 2.117 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007747/0.6756, allocations: 103.9 kB / 0.6329 GB, free: 2.016 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.6779, allocations: 0.614 MB / 0.6335 GB, free: 1.363 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.678, allocations: 37.38 kB / 0.6335 GB, free: 1.324 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002547/0.6783, allocations: 60.27 kB / 0.6336 GB, free: 1.266 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.6804, allocations: 0.6314 MB / 0.6342 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.253e-05/0.6805, allocations: 4.125 kB / 0.6342 GB, free: 0.582 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.797e-05/0.6806, allocations: 23.94 kB / 0.6342 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.6806, allocations: 12 kB / 0.6342 GB, free: 0.5469 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002075/0.6827, allocations: 0.4939 MB / 0.6347 GB, free: 56 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00682/0.6895, allocations: 2.667 MB / 0.6373 GB, free: 13.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/0.6917, allocations: 0.5759 MB / 0.6379 GB, free: 12.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.6928, allocations: 274.5 kB / 0.6381 GB, free: 12.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.464e-05/0.6929, allocations: 4 kB / 0.6382 GB, free: 12.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.6929, allocations: 38.56 kB / 0.6382 GB, free: 12.35 MB / 458.7 MB Notification: Performance of pre-optimization done (n=43): time 4.097e-06/0.6929, allocations: 4 kB / 0.6382 GB, free: 12.35 MB / 458.7 MB Notification: Performance of matching and sorting (n=44): time 0.004531/0.6975, allocations: 1.203 MB / 0.6394 GB, free: 11.13 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.875e-05/0.6976, allocations: 140.5 kB / 0.6395 GB, free: 10.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.6991, allocations: 0.6528 MB / 0.6401 GB, free: 10.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-05/0.6991, allocations: 37.7 kB / 0.6402 GB, free: 10.26 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000365/0.6995, allocations: 352 kB / 0.6405 GB, free: 9.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.6997, allocations: 173.5 kB / 0.6407 GB, free: 9.738 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.482e-05/0.6998, allocations: 16 kB / 0.6407 GB, free: 9.723 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.7, allocations: 333.9 kB / 0.641 GB, free: 9.391 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.701, allocations: 281.1 kB / 0.6413 GB, free: 9.113 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.7022, allocations: 447.4 kB / 0.6417 GB, free: 8.613 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002181/0.7044, allocations: 0.7184 MB / 0.6424 GB, free: 7.836 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.7044, allocations: 4 kB / 0.6424 GB, free: 7.832 MB / 458.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002863/0.7073, allocations: 0.8541 MB / 0.6432 GB, free: 6.969 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002188/0.7075, allocations: 225.9 kB / 0.6435 GB, free: 6.684 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.7076, allocations: 8 kB / 0.6435 GB, free: 6.676 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000349/0.7079, allocations: 60.81 kB / 0.6435 GB, free: 6.613 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/0.7096, allocations: 207.7 kB / 0.6437 GB, free: 6.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00207/0.7117, allocations: 1.502 MB / 0.6452 GB, free: 4.773 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.7127, allocations: 87.62 kB / 0.6453 GB, free: 4.688 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.234e-05/0.7128, allocations: 28.09 kB / 0.6453 GB, free: 4.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.021e-05/0.7129, allocations: 4 kB / 0.6453 GB, free: 4.656 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002726/0.7156, allocations: 0.7386 MB / 0.646 GB, free: 3.914 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.7156, allocations: 8.094 kB / 0.646 GB, free: 3.906 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/0.7159, allocations: 56.81 kB / 0.6461 GB, free: 3.848 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.7174, allocations: 199.8 kB / 0.6463 GB, free: 3.652 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.7192, allocations: 1.499 MB / 0.6477 GB, free: 2.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008733/0.7201, allocations: 83.55 kB / 0.6478 GB, free: 1.938 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.167e-05/0.7201, allocations: 24 kB / 0.6478 GB, free: 1.914 MB / 458.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 (76): * Single equations (assignments): 75 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004278/0.7206, allocations: 300.8 kB / 0.6481 GB, free: 1.609 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001789/0.7208, allocations: 75.06 kB / 0.6482 GB, free: 1.535 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.721, allocations: 86.25 kB / 0.6483 GB, free: 1.449 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.721, allocations: 11.98 kB / 0.6483 GB, free: 1.438 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.721, allocations: 0 / 0.6483 GB, free: 1.438 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.721, allocations: 0 / 0.6483 GB, free: 1.438 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.7223, allocations: 0.8415 MB / 0.6491 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.7223, allocations: 0 / 0.6491 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006729/0.723, allocations: 119.9 kB / 0.6492 GB, free: 432 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.723, allocations: 0 / 0.6492 GB, free: 432 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-05/0.7231, allocations: 19.98 kB / 0.6493 GB, free: 412 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.7231, allocations: 0 / 0.6493 GB, free: 412 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.7231, allocations: 7.938 kB / 0.6493 GB, free: 404 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.7252, allocations: 1.212 MB / 0.6504 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.7255, allocations: 200.1 kB / 0.6506 GB, free: 14.94 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.11e-05/0.7256, allocations: 15.98 kB / 0.6506 GB, free: 14.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005434/0.7261, allocations: 67.94 kB / 0.6507 GB, free: 14.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.7263, allocations: 39.88 kB / 0.6508 GB, free: 14.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.7263, allocations: 12 kB / 0.6508 GB, free: 14.81 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006528/0.727, allocations: 467 kB / 0.6512 GB, free: 14.36 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.727, allocations: 0 / 0.6512 GB, free: 14.36 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008103/0.7278, allocations: 204 kB / 0.6514 GB, free: 14.16 MB / 474.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.0001952/0.728, allocations: 119.1 kB / 0.6515 GB, free: 14.03 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.7305, allocations: 1.258 MB / 0.6527 GB, free: 12.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7305, allocations: 0 / 0.6527 GB, free: 12.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006422/0.7312, allocations: 303.8 kB / 0.653 GB, free: 12.45 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.7323, allocations: 170.6 kB / 0.6532 GB, free: 12.29 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/0.735, allocations: 1.773 MB / 0.6549 GB, free: 10.48 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005156/0.7355, allocations: 0.9459 MB / 0.6559 GB, free: 9.508 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.7357, allocations: 47.44 kB / 0.6559 GB, free: 9.461 MB / 474.7 MB Notification: Performance of SimCode: time 4.81e-07/0.7357, allocations: 0 / 0.6559 GB, free: 9.461 MB / 474.7 MB Notification: Performance of Templates: time 0.01422/0.75, allocations: 10.1 MB / 0.6658 GB, free: 15.41 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_SteadyState/Continuous_SteadyState.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_SteadyState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches