Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.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_InitialState,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_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,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_InitialState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009291/0.0009292, allocations: 200.7 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.6 MB / 243.1 MB, free: 12.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007855/0.0007855, allocations: 101.1 kB / 295.1 MB, free: 4.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1879/0.1879, allocations: 44.83 MB / 392 MB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003382, allocations: 8 kB / 464.7 MB, free: 68.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.08916, allocations: 62.96 MB / 0.5153 GB, free: 5.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.002431/0.09163, allocations: 2.83 MB / 0.5181 GB, free: 2.27 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.09349, allocations: 1.509 MB / 0.5196 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.09373, allocations: 19.88 kB / 0.5196 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003711/0.09411, allocations: 107.2 kB / 0.5197 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003122/0.09443, allocations: 151 kB / 0.5198 GB, free: 496 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007305/0.09517, allocations: 426.1 kB / 0.5202 GB, free: 72 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007219/0.09591, allocations: 0.7758 MB / 0.521 GB, free: 15.29 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.09619, allocations: 173.4 kB / 0.5212 GB, free: 15.11 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003666/0.09657, allocations: 298.6 kB / 0.5214 GB, free: 14.82 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003704/0.09695, allocations: 326.3 kB / 0.5218 GB, free: 14.5 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.705e-05/0.09702, allocations: 24 kB / 0.5218 GB, free: 14.48 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.683e-05/0.09712, allocations: 28 kB / 0.5218 GB, free: 14.45 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.09727, allocations: 151.3 kB / 0.5219 GB, free: 14.3 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.354e-05/0.09737, allocations: 133.3 kB / 0.5221 GB, free: 14.16 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004451/0.09783, allocations: 0.5338 MB / 0.5226 GB, free: 13.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.09784, allocations: 0 / 0.5226 GB, free: 13.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09784, allocations: 0 / 0.5226 GB, free: 13.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.09786, allocations: 4 kB / 0.5226 GB, free: 13.62 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001922/0.09978, allocations: 1.059 MB / 0.5236 GB, free: 12.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.09982, allocations: 16.02 kB / 0.5236 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002194/0.1001, allocations: 94.97 kB / 0.5237 GB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007889/0.1008, allocations: 0.5227 MB / 0.5242 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.453e-05/0.1009, allocations: 37 kB / 0.5243 GB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.983e-05/0.101, allocations: 63.89 kB / 0.5243 GB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.1021, allocations: 0.6368 MB / 0.525 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1021, allocations: 0 / 0.525 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.1021, allocations: 16 kB / 0.525 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.1021, allocations: 12 kB / 0.525 GB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.1032, allocations: 497.8 kB / 0.5255 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003321/0.1065, allocations: 2.698 MB / 0.5281 GB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.1076, allocations: 0.574 MB / 0.5287 GB, free: 7.137 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005292/0.1081, allocations: 276.5 kB / 0.5289 GB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.1082, allocations: 4 kB / 0.5289 GB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.1082, allocations: 38.56 kB / 0.529 GB, free: 6.809 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.1082, allocations: 0 / 0.529 GB, free: 6.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.002314/0.1105, allocations: 1.217 MB / 0.5302 GB, free: 5.582 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.1106, allocations: 132.5 kB / 0.5303 GB, free: 5.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007621/0.1114, allocations: 0.6451 MB / 0.5309 GB, free: 4.766 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.076e-05/0.1114, allocations: 33.7 kB / 0.5309 GB, free: 4.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002367/0.1117, allocations: 364 kB / 0.5313 GB, free: 4.367 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.1118, allocations: 173.5 kB / 0.5315 GB, free: 4.195 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.1119, allocations: 12 kB / 0.5315 GB, free: 4.184 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.112, allocations: 333.9 kB / 0.5318 GB, free: 3.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005897/0.1126, allocations: 293.1 kB / 0.5321 GB, free: 3.566 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006782/0.1132, allocations: 445.2 kB / 0.5325 GB, free: 3.062 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006508/0.1139, allocations: 336.6 kB / 0.5328 GB, free: 2.738 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1139, allocations: 0 / 0.5328 GB, free: 2.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001518/0.1154, allocations: 0.8381 MB / 0.5336 GB, free: 1.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.1156, allocations: 209.6 kB / 0.5338 GB, free: 1.625 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.1156, allocations: 8 kB / 0.5338 GB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1156, allocations: 8 kB / 0.5338 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006517/0.1163, allocations: 167.7 kB / 0.534 GB, free: 1.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.1163, allocations: 11.95 kB / 0.534 GB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.1168, allocations: 91.62 kB / 0.5341 GB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.256e-05/0.1168, allocations: 20 kB / 0.5341 GB, free: 1.324 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.791e-06/0.1168, allocations: 4 kB / 0.5341 GB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001312/0.1182, allocations: 0.7259 MB / 0.5348 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1182, allocations: 4 kB / 0.5348 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.1182, allocations: 8 kB / 0.5348 GB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005834/0.1188, allocations: 152.2 kB / 0.535 GB, free: 444 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.1188, allocations: 11.98 kB / 0.535 GB, free: 432 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/0.1193, allocations: 79.55 kB / 0.5351 GB, free: 352 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.507e-05/0.1193, allocations: 28 kB / 0.5351 GB, free: 324 kB / 362.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.0002651/0.1196, allocations: 296.8 kB / 0.5354 GB, free: 16 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.1197, allocations: 75.11 kB / 0.5355 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001563/0.1199, allocations: 98.09 kB / 0.5356 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.1199, allocations: 4 kB / 0.5356 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1199, allocations: 0 / 0.5356 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1199, allocations: 4 kB / 0.5356 GB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00113/0.1211, allocations: 0.861 MB / 0.5364 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1211, allocations: 0 / 0.5364 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006274/0.1217, allocations: 119.9 kB / 0.5365 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.1217, allocations: 0 / 0.5365 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.1218, allocations: 16 kB / 0.5365 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1218, allocations: 4 kB / 0.5365 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.1218, allocations: 3.984 kB / 0.5365 GB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.1237, allocations: 1.201 MB / 0.5377 GB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/0.1239, allocations: 196.2 kB / 0.5379 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.998e-05/0.124, allocations: 19.94 kB / 0.5379 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.1245, allocations: 59.94 kB / 0.538 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.229e-05/0.1246, allocations: 39.94 kB / 0.538 GB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.1246, allocations: 8 kB / 0.538 GB, free: 13.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005606/0.1252, allocations: 463 kB / 0.5385 GB, free: 12.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1252, allocations: 0 / 0.5385 GB, free: 12.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006418/0.1259, allocations: 192 kB / 0.5386 GB, free: 12.59 MB / 378.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.0001202/0.126, allocations: 111.7 kB / 0.5388 GB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.1279, allocations: 1.012 MB / 0.5397 GB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1279, allocations: 4 kB / 0.5397 GB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000576/0.1285, allocations: 307.2 kB / 0.54 GB, free: 11.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009328/0.1294, allocations: 180.5 kB / 0.5402 GB, free: 10.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.1319, allocations: 1.75 MB / 0.5419 GB, free: 9.195 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.1323, allocations: 0.9575 MB / 0.5429 GB, free: 8.211 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.1326, allocations: 47.44 kB / 0.5429 GB, free: 8.164 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.1326, allocations: 0 / 0.5429 GB, free: 8.164 MB / 378.7 MB Notification: Performance of Templates: time 0.1704/0.303, allocations: 8.61 MB / 0.5513 GB, free: 39.85 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches