Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001315/0.001315, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.223/0.223, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002228/0.002228, allocations: 75.7 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09927/0.1015, allocations: 62.46 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006155/0.1077, allocations: 4.352 MB / 484.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004317/0.112, allocations: 1.578 MB / 486.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006262/0.1127, allocations: 35.81 kB / 486.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000514/0.1132, allocations: 158.2 kB / 486.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005903/0.1138, allocations: 158.3 kB / 486.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001847/0.1157, allocations: 0.6075 MB / 487.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001549/0.1173, allocations: 1.012 MB / 488.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009725/0.1182, allocations: 439.1 kB / 488.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005437/0.1188, allocations: 358.3 kB / 488.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005695/0.1194, allocations: 385.7 kB / 489.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001968/0.1196, allocations: 91.94 kB / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.1198, allocations: 84 kB / 489.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002649/0.1201, allocations: 203.2 kB / 489.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005484/0.1206, allocations: 429.2 kB / 490 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.122, allocations: 0.989 MB / 491 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1221, allocations: 3.938 kB / 491 MB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1221, allocations: 4 kB / 491 MB, free: 10.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1221, allocations: 0 / 491 MB, free: 10.24 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.003141/0.1252, allocations: 1.288 MB / 492.3 MB, free: 8.898 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.1253, allocations: 8.031 kB / 492.3 MB, free: 8.891 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/0.1255, allocations: 106.7 kB / 492.4 MB, free: 8.777 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002529/0.1258, allocations: 119.5 kB / 492.6 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.127, allocations: 0.6203 MB / 493.2 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.355e-05/0.1271, allocations: 45.69 kB / 493.2 MB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.1272, allocations: 68.38 kB / 493.3 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/0.1293, allocations: 0.7658 MB / 494.1 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.1294, allocations: 3.938 kB / 494.1 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.37e-05/0.1295, allocations: 28 kB / 494.1 MB, free: 7.023 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.67e-05/0.1295, allocations: 20 kB / 494.1 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002041/0.1316, allocations: 0.5383 MB / 494.6 MB, free: 6.465 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005274/0.1369, allocations: 2.729 MB / 497.4 MB, free: 3.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002229/0.1391, allocations: 0.6672 MB / 498 MB, free: 2.934 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009205/0.1401, allocations: 279.3 kB / 498.3 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.447e-05/0.1401, allocations: 7.938 kB / 498.3 MB, free: 2.641 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/0.1402, allocations: 46.56 kB / 498.4 MB, free: 2.586 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 3.867e-06/0.1402, allocations: 8 kB / 498.4 MB, free: 2.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003034/0.1433, allocations: 0.7882 MB / 499.2 MB, free: 1.789 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003006/0.1436, allocations: 350.1 kB / 499.5 MB, free: 1.367 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/0.145, allocations: 0.6967 MB / 0.4885 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.915e-05/0.1451, allocations: 37.7 kB / 0.4885 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005295/0.1456, allocations: 432.5 kB / 0.4889 GB, free: 192 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/0.1459, allocations: 185.3 kB / 0.4891 GB, free: 4 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.1462, allocations: 114.1 kB / 0.4892 GB, free: 15.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002059/0.1464, allocations: 329.9 kB / 0.4895 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008284/0.1472, allocations: 231 kB / 0.4897 GB, free: 15.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.1483, allocations: 391.5 kB / 0.4901 GB, free: 14.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/0.1503, allocations: 0.5627 MB / 0.4907 GB, free: 14.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.1503, allocations: 0 / 0.4907 GB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.004252/0.1546, allocations: 1.036 MB / 0.4917 GB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.1546, allocations: 8 kB / 0.4917 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1546, allocations: 4 kB / 0.4917 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/0.1564, allocations: 323.4 kB / 0.492 GB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008549/0.1573, allocations: 127.9 kB / 0.4921 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/0.1706, allocations: 7.276 MB / 0.4992 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008704/0.1715, allocations: 79.39 kB / 0.4993 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.257e-05/0.1715, allocations: 20 kB / 0.4993 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001047/0.1726, allocations: 345.2 kB / 0.4997 GB, free: 4.488 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008467/0.1735, allocations: 363.4 kB / 0.5 GB, free: 4.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001438/0.1749, allocations: 496.4 kB / 0.5005 GB, free: 3.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.236e-06/0.1749, allocations: 0 / 0.5005 GB, free: 3.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.00256/0.1775, allocations: 0.7424 MB / 0.5012 GB, free: 2.797 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.1775, allocations: 8 kB / 0.5012 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1776, allocations: 4 kB / 0.5012 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007621/0.1783, allocations: 149.8 kB / 0.5014 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.1796, allocations: 167.8 kB / 0.5015 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2199/0.3995, allocations: 3.421 MB / 0.5049 GB, free: 38.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007399/0.4003, allocations: 67.27 kB / 0.5049 GB, free: 38.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/0.4003, allocations: 21.16 kB / 0.5049 GB, free: 38.76 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.0002263/0.4006, allocations: 221.4 kB / 0.5051 GB, free: 38.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.4008, allocations: 89.41 kB / 0.5052 GB, free: 38.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002056/0.401, allocations: 100.3 kB / 0.5053 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.401, allocations: 5.938 kB / 0.5053 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.401, allocations: 1.25 kB / 0.5053 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.401, allocations: 3.984 kB / 0.5053 GB, free: 38.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.4022, allocations: 0.7347 MB / 0.5061 GB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.4022, allocations: 1.984 kB / 0.5061 GB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005979/0.4028, allocations: 111.2 kB / 0.5062 GB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.4028, allocations: 3.875 kB / 0.5062 GB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.772e-05/0.4029, allocations: 17.86 kB / 0.5062 GB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.78e-05/0.4029, allocations: 4.375 kB / 0.5062 GB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4029, allocations: 2.406 kB / 0.5062 GB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.4047, allocations: 1.207 MB / 0.5074 GB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/0.405, allocations: 219.5 kB / 0.5076 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.915e-05/0.405, allocations: 14.75 kB / 0.5076 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005056/0.4056, allocations: 41.11 kB / 0.5076 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.426e-05/0.4057, allocations: 38.3 kB / 0.5077 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.761e-05/0.4057, allocations: 13.88 kB / 0.5077 GB, free: 37.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005707/0.4063, allocations: 488.5 kB / 0.5081 GB, free: 37.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4063, allocations: 0.75 kB / 0.5082 GB, free: 37.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001003/0.4073, allocations: 279.3 kB / 0.5084 GB, free: 37.79 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.001893/0.4092, allocations: 1.764 MB / 0.5101 GB, free: 36.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003926/0.4131, allocations: 1.904 MB / 0.512 GB, free: 35.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.4132, allocations: 1.094 kB / 0.512 GB, free: 35.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000567/0.4137, allocations: 279.6 kB / 0.5123 GB, free: 35.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.4152, allocations: 240 kB / 0.5125 GB, free: 35.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.4265, allocations: 7.547 MB / 0.5199 GB, free: 31.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004753/0.427, allocations: 0.9833 MB / 0.5208 GB, free: 30.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004633/0.4275, allocations: 88.98 kB / 0.5209 GB, free: 30.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003738/0.4278, allocations: 321.5 kB / 0.5212 GB, free: 30.53 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4278, allocations: 0 / 0.5212 GB, free: 30.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05318/0.481, allocations: 20.04 MB / 0.5408 GB, free: 17.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.83, allocations: 3.938 kB / 0.5408 GB, free: 17.24 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe 2>&1)