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.001792/0.001792, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002008/0.002008, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2278/0.2278, allocations: 46.09 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 76.66 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1467, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.007341/0.1541, allocations: 4.344 MB / 484.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004982/0.1591, allocations: 1.581 MB / 486 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.1604, allocations: 35.81 kB / 486.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004994/0.161, allocations: 162.2 kB / 486.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004339/0.1614, allocations: 158.3 kB / 486.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001512/0.1629, allocations: 0.5993 MB / 487 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009843/0.1639, allocations: 1.012 MB / 488 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006305/0.1646, allocations: 439.1 kB / 488.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004329/0.165, allocations: 370.2 kB / 488.8 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/0.1654, allocations: 385.7 kB / 489.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.1655, allocations: 88 kB / 489.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.1656, allocations: 88 kB / 489.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001678/0.1658, allocations: 195.2 kB / 489.5 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003592/0.1662, allocations: 441.2 kB / 490 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009356/0.1671, allocations: 0.9773 MB / 490.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1671, allocations: 0 / 490.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1672, allocations: 0 / 490.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.1672, allocations: 0 / 490.9 MB, free: 10.3 MB / 366.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.002086/0.1693, allocations: 1.292 MB / 492.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1693, allocations: 12.03 kB / 492.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001277/0.1695, allocations: 106.7 kB / 492.4 MB, free: 8.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.1696, allocations: 115.5 kB / 492.5 MB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007871/0.1704, allocations: 0.6203 MB / 493.1 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.042e-05/0.1705, allocations: 57.69 kB / 493.1 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.1706, allocations: 64.38 kB / 493.2 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.1719, allocations: 0.7771 MB / 494 MB, free: 7.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.172, allocations: 3.938 kB / 494 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.415e-05/0.172, allocations: 28 kB / 494 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.1721, allocations: 19.94 kB / 494 MB, free: 7.043 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.1732, allocations: 0.5423 MB / 494.6 MB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003429/0.1766, allocations: 2.714 MB / 497.3 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.178, allocations: 0.6706 MB / 498 MB, free: 2.984 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000533/0.1785, allocations: 279.3 kB / 498.2 MB, free: 2.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.914e-05/0.1786, allocations: 15.94 kB / 498.2 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.541e-05/0.1787, allocations: 46.56 kB / 498.3 MB, free: 2.629 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.735e-06/0.1787, allocations: 0 / 498.3 MB, free: 2.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001761/0.1804, allocations: 0.7926 MB / 499.1 MB, free: 1.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001787/0.1806, allocations: 346.1 kB / 499.4 MB, free: 1.414 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007801/0.1814, allocations: 0.7046 MB / 0.4884 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.995e-05/0.1815, allocations: 33.7 kB / 0.4884 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/0.1818, allocations: 424.5 kB / 0.4888 GB, free: 244 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.182, allocations: 193.2 kB / 0.489 GB, free: 48 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.1822, allocations: 110.1 kB / 0.4891 GB, free: 15.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1823, allocations: 329.9 kB / 0.4894 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005121/0.1828, allocations: 231 kB / 0.4897 GB, free: 15.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007228/0.1836, allocations: 387.5 kB / 0.49 GB, free: 14.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.1846, allocations: 0.5583 MB / 0.4906 GB, free: 14.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1847, allocations: 0 / 0.4906 GB, free: 14.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002622/0.1873, allocations: 1.047 MB / 0.4916 GB, free: 13.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.1873, allocations: 6.5 kB / 0.4916 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1873, allocations: 8.281 kB / 0.4916 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.1885, allocations: 319.1 kB / 0.4919 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.1891, allocations: 123.9 kB / 0.492 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008721/0.1978, allocations: 7.284 MB / 0.4992 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006996/0.1985, allocations: 79.39 kB / 0.4992 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/0.1986, allocations: 23.94 kB / 0.4993 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006977/0.1993, allocations: 349.2 kB / 0.4996 GB, free: 4.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005522/0.1999, allocations: 359.4 kB / 0.4999 GB, free: 4.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008684/0.2008, allocations: 0.4891 MB / 0.5004 GB, free: 3.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.775e-06/0.2008, allocations: 0 / 0.5004 GB, free: 3.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001651/0.2024, allocations: 0.7385 MB / 0.5011 GB, free: 2.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.2025, allocations: 4 kB / 0.5011 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2025, allocations: 4 kB / 0.5011 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004964/0.203, allocations: 145.8 kB / 0.5013 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007237/0.2037, allocations: 175.8 kB / 0.5014 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.265/0.4687, allocations: 3.415 MB / 0.5048 GB, free: 38.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007704/0.4695, allocations: 68.02 kB / 0.5048 GB, free: 38.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-05/0.4696, allocations: 22.28 kB / 0.5049 GB, free: 38.84 MB / 382.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.0002335/0.4698, allocations: 222.3 kB / 0.5051 GB, free: 38.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.47, allocations: 89.3 kB / 0.5052 GB, free: 38.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002161/0.4702, allocations: 97.61 kB / 0.5053 GB, free: 38.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.4703, allocations: 5.5 kB / 0.5053 GB, free: 38.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4703, allocations: 3.719 kB / 0.5053 GB, free: 38.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.4703, allocations: 3.953 kB / 0.5053 GB, free: 38.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.4715, allocations: 0.7381 MB / 0.506 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.4715, allocations: 1.375 kB / 0.506 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005744/0.472, allocations: 109.5 kB / 0.5061 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.4721, allocations: 5.5 kB / 0.5061 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.643e-05/0.4721, allocations: 11.86 kB / 0.5061 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.4721, allocations: 5.156 kB / 0.5061 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4721, allocations: 1.75 kB / 0.5061 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001848/0.474, allocations: 1.207 MB / 0.5073 GB, free: 38.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.4742, allocations: 214.6 kB / 0.5075 GB, free: 37.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.4743, allocations: 12.38 kB / 0.5075 GB, free: 37.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004997/0.4748, allocations: 44.77 kB / 0.5076 GB, free: 37.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.475, allocations: 46.14 kB / 0.5076 GB, free: 37.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-05/0.475, allocations: 11.09 kB / 0.5076 GB, free: 37.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006764/0.4757, allocations: 487.5 kB / 0.5081 GB, free: 37.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.92e-07/0.4757, allocations: 0 / 0.5081 GB, free: 37.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001064/0.4768, allocations: 283.5 kB / 0.5083 GB, free: 37.87 MB / 382.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.002052/0.4788, allocations: 1.754 MB / 0.5101 GB, free: 36.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004285/0.4831, allocations: 1.903 MB / 0.5119 GB, free: 35.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.4831, allocations: 1.125 kB / 0.5119 GB, free: 35.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005759/0.4837, allocations: 285.4 kB / 0.5122 GB, free: 35.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.4851, allocations: 240.8 kB / 0.5124 GB, free: 35.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01289/0.498, allocations: 7.54 MB / 0.5198 GB, free: 31.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006422/0.4987, allocations: 0.9807 MB / 0.5207 GB, free: 30.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005739/0.4993, allocations: 90.86 kB / 0.5208 GB, free: 30.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004399/0.4997, allocations: 322.8 kB / 0.5211 GB, free: 30.62 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4997, allocations: 0 / 0.5211 GB, free: 30.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05069/0.5504, allocations: 20.02 MB / 0.5407 GB, free: 17.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.72, allocations: 7.516 kB / 0.5407 GB, free: 17.34 MB / 382.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