Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.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.LimPID,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001306/0.001306, 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.001302/0.001302, 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.527/1.527, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2688/0.2688, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002192/0.002192, allocations: 75.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3829, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006394/0.3893, allocations: 4.357 MB / 0.5348 GB, free: 9.879 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003797/0.3932, allocations: 1.575 MB / 0.5364 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007462/0.394, allocations: 39.12 kB / 0.5364 GB, free: 8.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004531/0.3944, allocations: 158.5 kB / 0.5366 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004272/0.3949, allocations: 161.4 kB / 0.5367 GB, free: 8.266 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001434/0.3963, allocations: 0.5973 MB / 0.5373 GB, free: 7.793 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.3975, allocations: 1.03 MB / 0.5383 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006491/0.3982, allocations: 434.7 kB / 0.5387 GB, free: 6.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004305/0.3986, allocations: 357.3 kB / 0.5391 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004229/0.399, allocations: 388.6 kB / 0.5394 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000133/0.3992, allocations: 90.31 kB / 0.5395 GB, free: 6.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.3993, allocations: 87.78 kB / 0.5396 GB, free: 6.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.3995, allocations: 200 kB / 0.5398 GB, free: 6.141 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003946/0.3999, allocations: 440 kB / 0.5402 GB, free: 5.785 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.4011, allocations: 1.028 MB / 0.5412 GB, free: 4.977 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.4011, allocations: 0 / 0.5412 GB, free: 4.977 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4011, allocations: 3.938 kB / 0.5412 GB, free: 4.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.4011, allocations: 0 / 0.5412 GB, free: 4.973 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002186/0.4033, allocations: 1.324 MB / 0.5425 GB, free: 3.926 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.4034, allocations: 8.906 kB / 0.5425 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001356/0.4035, allocations: 107.4 kB / 0.5426 GB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.4037, allocations: 120.6 kB / 0.5427 GB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.4048, allocations: 0.6629 MB / 0.5434 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.4049, allocations: 47.09 kB / 0.5434 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.405, allocations: 67.06 kB / 0.5435 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.4064, allocations: 0.7674 MB / 0.5442 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/0.4064, allocations: 5.094 kB / 0.5443 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.932e-05/0.4065, allocations: 27.31 kB / 0.5443 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.4065, allocations: 15.78 kB / 0.5443 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.4078, allocations: 0.542 MB / 0.5448 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.4117, allocations: 2.72 MB / 0.5475 GB, free: 52 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.4132, allocations: 0.6699 MB / 0.5481 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005982/0.4139, allocations: 279.3 kB / 0.5484 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.946e-05/0.4139, allocations: 11.98 kB / 0.5484 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.414, allocations: 50.48 kB / 0.5485 GB, free: 15.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.585e-06/0.414, allocations: 0 / 0.5485 GB, free: 15.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.002057/0.4161, allocations: 0.8005 MB / 0.5492 GB, free: 14.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002225/0.4163, allocations: 346.1 kB / 0.5496 GB, free: 13.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009176/0.4172, allocations: 0.6968 MB / 0.5503 GB, free: 13.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.148e-05/0.4173, allocations: 33.7 kB / 0.5503 GB, free: 13.06 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003852/0.4177, allocations: 441 kB / 0.5507 GB, free: 12.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.4179, allocations: 198.3 kB / 0.5509 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001976/0.4181, allocations: 110.2 kB / 0.551 GB, free: 12.31 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.4182, allocations: 333.8 kB / 0.5513 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005486/0.4188, allocations: 231 kB / 0.5515 GB, free: 11.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007084/0.4195, allocations: 391.4 kB / 0.5519 GB, free: 11.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.4207, allocations: 0.5545 MB / 0.5525 GB, free: 10.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4208, allocations: 0 / 0.5525 GB, free: 10.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002923/0.4237, allocations: 1.045 MB / 0.5535 GB, free: 9.656 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.182e-05/0.4237, allocations: 8 kB / 0.5535 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.4237, allocations: 0 / 0.5535 GB, free: 9.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.4251, allocations: 327.4 kB / 0.5538 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005757/0.4256, allocations: 123.9 kB / 0.5539 GB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.4363, allocations: 7.277 MB / 0.561 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00084/0.4372, allocations: 87.56 kB / 0.5611 GB, free: 1.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.855e-05/0.4373, allocations: 20 kB / 0.5611 GB, free: 1.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007955/0.4381, allocations: 345.2 kB / 0.5614 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005689/0.4387, allocations: 355.5 kB / 0.5618 GB, free: 0.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009406/0.4396, allocations: 0.4944 MB / 0.5623 GB, free: 15.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.184e-06/0.4396, allocations: 0 / 0.5623 GB, free: 15.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001785/0.4414, allocations: 0.7506 MB / 0.563 GB, free: 15.21 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.4415, allocations: 6.656 kB / 0.563 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.4415, allocations: 7.984 kB / 0.563 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005418/0.442, allocations: 146 kB / 0.5632 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007545/0.4428, allocations: 171.8 kB / 0.5633 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004126/0.4469, allocations: 3.435 MB / 0.5667 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007142/0.4477, allocations: 71.64 kB / 0.5667 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.4477, allocations: 16 kB / 0.5668 GB, free: 11.09 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002872/0.448, allocations: 216.1 kB / 0.567 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002163/0.4482, allocations: 99.33 kB / 0.5671 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002305/0.4485, allocations: 103.2 kB / 0.5672 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.4485, allocations: 8 kB / 0.5672 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.4485, allocations: 0 / 0.5672 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.4485, allocations: 7.984 kB / 0.5672 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001231/0.4498, allocations: 0.7312 MB / 0.5679 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.4498, allocations: 0 / 0.5679 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000586/0.4504, allocations: 107.9 kB / 0.568 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-05/0.4504, allocations: 7.938 kB / 0.568 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-05/0.4504, allocations: 19.94 kB / 0.568 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.4504, allocations: 7.938 kB / 0.568 GB, free: 9.723 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4505, allocations: 0 / 0.568 GB, free: 9.723 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.4525, allocations: 1.202 MB / 0.5692 GB, free: 8.508 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002984/0.4529, allocations: 228.2 kB / 0.5694 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.579e-05/0.453, allocations: 12 kB / 0.5694 GB, free: 8.254 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005031/0.4535, allocations: 48.02 kB / 0.5695 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.644e-05/0.4536, allocations: 31.95 kB / 0.5695 GB, free: 8.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.4536, allocations: 12 kB / 0.5695 GB, free: 8.164 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006309/0.4542, allocations: 487 kB / 0.57 GB, free: 7.695 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4543, allocations: 4 kB / 0.57 GB, free: 7.691 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00104/0.4553, allocations: 279.4 kB / 0.5703 GB, free: 7.418 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * 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 (52): * Single equations (assignments): 52 * 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.002524/0.4578, allocations: 1.77 MB / 0.572 GB, free: 5.613 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004374/0.4622, allocations: 1.881 MB / 0.5738 GB, free: 3.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4622, allocations: 0 / 0.5738 GB, free: 3.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006397/0.4629, allocations: 291.6 kB / 0.5741 GB, free: 3.379 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/0.4644, allocations: 231.2 kB / 0.5743 GB, free: 3.164 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.4775, allocations: 7.216 MB / 0.5814 GB, free: 11.69 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007021/0.4782, allocations: 0.977 MB / 0.5823 GB, free: 10.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004552/0.4787, allocations: 93.09 kB / 0.5824 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00048/0.4792, allocations: 327.3 kB / 0.5827 GB, free: 10.28 MB / 446.1 MB Notification: Performance of SimCode: time 1.683e-06/0.4792, allocations: 4 kB / 0.5827 GB, free: 10.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06185/0.5411, allocations: 20.29 MB / 0.6025 GB, free: 6.109 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.63/14.17, allocations: 22.28 kB / 0.6026 GB, free: 6.094 MB / 462.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaTest_trunk_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches