Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001517/0.001517, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001346, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.585/1.585, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2563/0.2563, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 71.89 kB / 480.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4405/0.442, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.005903/0.448, allocations: 3.369 MB / 0.5338 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004433/0.4525, allocations: 1.605 MB / 0.5354 GB, free: 9.441 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.4536, allocations: 23 kB / 0.5354 GB, free: 9.434 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009887/0.4546, allocations: 140.7 kB / 0.5355 GB, free: 9.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001339/0.456, allocations: 196.3 kB / 0.5357 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002247/0.4583, allocations: 0.5395 MB / 0.5363 GB, free: 8.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002396/0.4607, allocations: 0.9136 MB / 0.5371 GB, free: 8.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006648/0.4614, allocations: 237.2 kB / 0.5374 GB, free: 8.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009561/0.4624, allocations: 369 kB / 0.5377 GB, free: 7.816 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007908/0.4632, allocations: 398.7 kB / 0.5381 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002047/0.4634, allocations: 62.56 kB / 0.5382 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.4637, allocations: 66.22 kB / 0.5382 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000293/0.464, allocations: 206.1 kB / 0.5384 GB, free: 7.383 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004722/0.4644, allocations: 344.6 kB / 0.5387 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.4663, allocations: 0.7782 MB / 0.5395 GB, free: 6.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.291e-05/0.4663, allocations: 5.094 kB / 0.5395 GB, free: 6.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.729e-06/0.4663, allocations: 0 / 0.5395 GB, free: 6.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.534e-05/0.4664, allocations: 3.938 kB / 0.5395 GB, free: 6.512 MB / 398.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.003629/0.47, allocations: 1.178 MB / 0.5407 GB, free: 5.594 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.01e-05/0.4701, allocations: 14.5 kB / 0.5407 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001673/0.4703, allocations: 85.78 kB / 0.5408 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004616/0.4707, allocations: 110.2 kB / 0.5409 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00159/0.4723, allocations: 0.5933 MB / 0.5414 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.614e-05/0.4724, allocations: 36.88 kB / 0.5415 GB, free: 4.945 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.4726, allocations: 59.77 kB / 0.5415 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.4742, allocations: 0.6133 MB / 0.5421 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.4743, allocations: 5.062 kB / 0.5421 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.116e-05/0.4743, allocations: 21.22 kB / 0.5422 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.4744, allocations: 11.47 kB / 0.5422 GB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.4758, allocations: 466.3 kB / 0.5426 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005112/0.4809, allocations: 2.654 MB / 0.5452 GB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.4824, allocations: 0.541 MB / 0.5457 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007019/0.4831, allocations: 262.2 kB / 0.546 GB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.231e-05/0.4832, allocations: 7.938 kB / 0.546 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.243e-05/0.4833, allocations: 38.56 kB / 0.546 GB, free: 1.551 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 3.347e-06/0.4833, allocations: 4 kB / 0.546 GB, free: 1.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.003177/0.4865, allocations: 1.161 MB / 0.5472 GB, free: 388 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.4866, allocations: 162.2 kB / 0.5473 GB, free: 188 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001162/0.4878, allocations: 0.6568 MB / 0.548 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.4879, allocations: 37.7 kB / 0.548 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003073/0.4882, allocations: 364.5 kB / 0.5484 GB, free: 15.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.4885, allocations: 178.5 kB / 0.5485 GB, free: 14.93 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002413/0.4887, allocations: 122.3 kB / 0.5486 GB, free: 14.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.4889, allocations: 329.9 kB / 0.549 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007242/0.4896, allocations: 275.3 kB / 0.5492 GB, free: 14.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008065/0.4904, allocations: 441 kB / 0.5496 GB, free: 13.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.4919, allocations: 0.6739 MB / 0.5503 GB, free: 12.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.4919, allocations: 4 kB / 0.5503 GB, free: 12.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00194/0.4938, allocations: 0.802 MB / 0.5511 GB, free: 12.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.4939, allocations: 4 kB / 0.5511 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.4939, allocations: 8 kB / 0.5511 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/0.494, allocations: 8 kB / 0.5511 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000746/0.4947, allocations: 152.2 kB / 0.5512 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.108e-05/0.4948, allocations: 19.88 kB / 0.5513 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007059/0.4955, allocations: 79.67 kB / 0.5513 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.1e-05/0.4955, allocations: 24 kB / 0.5514 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008833/0.4964, allocations: 413.3 kB / 0.5518 GB, free: 11.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007652/0.4972, allocations: 413.3 kB / 0.5522 GB, free: 11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001342/0.4986, allocations: 0.657 MB / 0.5528 GB, free: 10.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.529e-06/0.4986, allocations: 0 / 0.5528 GB, free: 10.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001797/0.5004, allocations: 0.7738 MB / 0.5535 GB, free: 9.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.5005, allocations: 11.94 kB / 0.5536 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.5005, allocations: 4 kB / 0.5536 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.5005, allocations: 8.531 kB / 0.5536 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007155/0.5012, allocations: 143.8 kB / 0.5537 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.5012, allocations: 11.94 kB / 0.5537 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006748/0.5019, allocations: 83.61 kB / 0.5538 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.867e-05/0.502, allocations: 24.05 kB / 0.5538 GB, free: 9.219 MB / 414.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002946/0.5023, allocations: 220.1 kB / 0.554 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002396/0.5025, allocations: 75.53 kB / 0.5541 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002496/0.5028, allocations: 94.2 kB / 0.5542 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.946e-06/0.5028, allocations: 7.938 kB / 0.5542 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.5028, allocations: 0 / 0.5542 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.5028, allocations: 11.92 kB / 0.5542 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001628/0.5045, allocations: 0.8493 MB / 0.555 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.5045, allocations: 7.875 kB / 0.5551 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007733/0.5053, allocations: 107.9 kB / 0.5552 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.5053, allocations: 0 / 0.5552 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.89e-05/0.5054, allocations: 19.98 kB / 0.5552 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.5054, allocations: 0 / 0.5552 GB, free: 7.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5054, allocations: 4 kB / 0.5552 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002276/0.5077, allocations: 1.137 MB / 0.5563 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003897/0.5081, allocations: 196.4 kB / 0.5565 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.5083, allocations: 15.94 kB / 0.5565 GB, free: 6.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006376/0.5089, allocations: 55.94 kB / 0.5565 GB, free: 6.324 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.509, allocations: 39.88 kB / 0.5566 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.473e-05/0.5091, allocations: 12 kB / 0.5566 GB, free: 6.273 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007568/0.5099, allocations: 463 kB / 0.557 GB, free: 5.828 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5099, allocations: 0 / 0.557 GB, free: 5.828 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001022/0.5109, allocations: 188 kB / 0.5572 GB, free: 5.645 MB / 414.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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002546/0.5135, allocations: 1.699 MB / 0.5589 GB, free: 3.918 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.5161, allocations: 0.9511 MB / 0.5598 GB, free: 2.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.5162, allocations: 0 / 0.5598 GB, free: 2.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007414/0.5169, allocations: 284.7 kB / 0.5601 GB, free: 2.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.5183, allocations: 191 kB / 0.5603 GB, free: 2.508 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.5309, allocations: 6.642 MB / 0.5667 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006553/0.5316, allocations: 0.9536 MB / 0.5677 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006694/0.5322, allocations: 148.8 kB / 0.5678 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004695/0.5327, allocations: 263.3 kB / 0.5681 GB, free: 10.22 MB / 430.1 MB Notification: Performance of SimCode: time 1.423e-06/0.5327, allocations: 0 / 0.5681 GB, free: 10.22 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04668/0.5794, allocations: 14.54 MB / 0.5823 GB, free: 11.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.359/9.938, allocations: 4.047 kB / 0.5823 GB, free: 11.79 MB / 446.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches