Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.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,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") 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_trunk_cpp_ModelicaTest.Blocks.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009104/0.0009106, allocations: 201 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.233/1.233, allocations: 226.6 MB / 243.1 MB, free: 12.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007883/0.0007884, allocations: 86.7 kB / 295.1 MB, free: 4.57 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1781/0.1781, allocations: 44.84 MB / 392 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002303/0.0002303, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.08195, allocations: 62.96 MB / 0.5153 GB, free: 5.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.002256/0.08424, allocations: 2.794 MB / 0.5181 GB, free: 2.305 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.08595, allocations: 1.509 MB / 0.5195 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002156/0.08618, allocations: 19.88 kB / 0.5195 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000338/0.08654, allocations: 103.2 kB / 0.5196 GB, free: 0.668 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.08683, allocations: 147 kB / 0.5198 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006979/0.08754, allocations: 442.6 kB / 0.5202 GB, free: 96 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006869/0.08824, allocations: 0.7758 MB / 0.521 GB, free: 15.32 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.08851, allocations: 173.5 kB / 0.5211 GB, free: 15.14 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003374/0.08886, allocations: 290.6 kB / 0.5214 GB, free: 14.85 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/0.08922, allocations: 330.3 kB / 0.5217 GB, free: 14.53 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.28e-05/0.0893, allocations: 20 kB / 0.5217 GB, free: 14.51 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.195e-05/0.08939, allocations: 24 kB / 0.5218 GB, free: 14.48 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001435/0.08954, allocations: 155.3 kB / 0.5219 GB, free: 14.33 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.461e-05/0.08964, allocations: 133.3 kB / 0.522 GB, free: 14.2 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.09007, allocations: 0.5377 MB / 0.5226 GB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.09008, allocations: 4 kB / 0.5226 GB, free: 13.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.09009, allocations: 0 / 0.5226 GB, free: 13.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.09011, allocations: 0 / 0.5226 GB, free: 13.65 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.001861/0.09197, allocations: 1.059 MB / 0.5236 GB, free: 12.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.864e-05/0.09201, allocations: 8.031 kB / 0.5236 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002081/0.09222, allocations: 103 kB / 0.5237 GB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007724/0.093, allocations: 0.5266 MB / 0.5242 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.09305, allocations: 37 kB / 0.5243 GB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.036e-05/0.09314, allocations: 63.91 kB / 0.5243 GB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.09418, allocations: 0.6368 MB / 0.5249 GB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.09422, allocations: 0 / 0.5249 GB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.94e-05/0.09427, allocations: 20 kB / 0.525 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.09429, allocations: 8 kB / 0.525 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.09533, allocations: 0.4939 MB / 0.5254 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003277/0.09862, allocations: 2.682 MB / 0.5281 GB, free: 7.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.09969, allocations: 0.5841 MB / 0.5286 GB, free: 7.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005338/0.1002, allocations: 270.4 kB / 0.5289 GB, free: 6.887 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.408e-05/0.1003, allocations: 4 kB / 0.5289 GB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.1003, allocations: 42.59 kB / 0.5289 GB, free: 6.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.643e-06/0.1003, allocations: 4 kB / 0.5289 GB, free: 6.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.00236/0.1027, allocations: 1.217 MB / 0.5301 GB, free: 5.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.1028, allocations: 132.5 kB / 0.5303 GB, free: 5.441 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007665/0.1035, allocations: 0.6451 MB / 0.5309 GB, free: 4.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.1036, allocations: 37.7 kB / 0.5309 GB, free: 4.742 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000232/0.1038, allocations: 360 kB / 0.5313 GB, free: 4.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.104, allocations: 165.6 kB / 0.5314 GB, free: 4.223 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.104, allocations: 16 kB / 0.5314 GB, free: 4.207 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1041, allocations: 333.9 kB / 0.5318 GB, free: 3.875 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000609/0.1047, allocations: 289.1 kB / 0.532 GB, free: 3.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007049/0.1055, allocations: 446 kB / 0.5325 GB, free: 3.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006522/0.1061, allocations: 333.2 kB / 0.5328 GB, free: 2.766 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1061, allocations: 0 / 0.5328 GB, free: 2.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001542/0.1077, allocations: 0.837 MB / 0.5336 GB, free: 1.926 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.1078, allocations: 221.7 kB / 0.5338 GB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1078, allocations: 7.938 kB / 0.5338 GB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1078, allocations: 8 kB / 0.5338 GB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006461/0.1085, allocations: 163.8 kB / 0.534 GB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/0.1085, allocations: 11.95 kB / 0.534 GB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.109, allocations: 91.62 kB / 0.5341 GB, free: 1.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-05/0.1091, allocations: 24 kB / 0.5341 GB, free: 1.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.983e-06/0.1091, allocations: 4 kB / 0.5341 GB, free: 1.34 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001331/0.1104, allocations: 0.718 MB / 0.5348 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1104, allocations: 4 kB / 0.5348 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.273e-06/0.1104, allocations: 8 kB / 0.5348 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005731/0.111, allocations: 156.3 kB / 0.535 GB, free: 468 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.111, allocations: 11.94 kB / 0.535 GB, free: 456 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004392/0.1115, allocations: 91.53 kB / 0.5351 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.1115, allocations: 20 kB / 0.5351 GB, free: 344 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.0002587/0.1118, allocations: 288.9 kB / 0.5354 GB, free: 44 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001476/0.1119, allocations: 75.31 kB / 0.5354 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.1121, allocations: 90.16 kB / 0.5355 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1121, allocations: 8 kB / 0.5355 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1121, allocations: 0 / 0.5355 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.1121, allocations: 3.984 kB / 0.5355 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.1133, allocations: 0.8607 MB / 0.5364 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.1133, allocations: 3.984 kB / 0.5364 GB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006216/0.1139, allocations: 111.9 kB / 0.5365 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1139, allocations: 4 kB / 0.5365 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.382e-05/0.114, allocations: 15.98 kB / 0.5365 GB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.114, allocations: 8 kB / 0.5365 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.114, allocations: 0 / 0.5365 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.1159, allocations: 1.215 MB / 0.5377 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.1161, allocations: 188.3 kB / 0.5379 GB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.303e-05/0.1162, allocations: 11.98 kB / 0.5379 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/0.1167, allocations: 63.94 kB / 0.5379 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.7e-05/0.1168, allocations: 39.94 kB / 0.538 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.1169, allocations: 12 kB / 0.538 GB, free: 13.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005561/0.1174, allocations: 459 kB / 0.5384 GB, free: 12.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1174, allocations: 0 / 0.5384 GB, free: 12.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006345/0.1181, allocations: 188 kB / 0.5386 GB, free: 12.62 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.0001399/0.1182, allocations: 115.7 kB / 0.5387 GB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.1201, allocations: 1.008 MB / 0.5397 GB, free: 11.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1202, allocations: 192 / 0.5397 GB, free: 11.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000593/0.1208, allocations: 310.6 kB / 0.54 GB, free: 11.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000956/0.1217, allocations: 181.6 kB / 0.5402 GB, free: 11.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.1241, allocations: 1.754 MB / 0.5419 GB, free: 9.219 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.1246, allocations: 0.9536 MB / 0.5428 GB, free: 8.238 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.1248, allocations: 55.42 kB / 0.5429 GB, free: 8.184 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1248, allocations: 0 / 0.5429 GB, free: 8.184 MB / 378.7 MB Notification: Performance of Templates: time 0.1693/0.2941, allocations: 8.598 MB / 0.5513 GB, free: 39.9 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous/Continuous.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches