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.001493/0.001493, 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.001404/0.001404, 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.492/1.492, allocations: 227.4 MB / 247 MB, free: 10.42 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.2441/0.2441, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002368/0.002368, allocations: 75.88 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3545, allocations: 62.44 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006184/0.3608, allocations: 4.361 MB / 0.5348 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003335/0.3641, allocations: 1.579 MB / 0.5364 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004528/0.3646, allocations: 34.5 kB / 0.5364 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004257/0.3651, allocations: 158.9 kB / 0.5366 GB, free: 8.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003987/0.3655, allocations: 162.2 kB / 0.5367 GB, free: 8.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.3668, allocations: 0.594 MB / 0.5373 GB, free: 7.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001142/0.368, allocations: 1.024 MB / 0.5383 GB, free: 7.145 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006294/0.3686, allocations: 445.1 kB / 0.5387 GB, free: 6.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.369, allocations: 363.2 kB / 0.5391 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004254/0.3695, allocations: 384.4 kB / 0.5394 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.3696, allocations: 85.66 kB / 0.5395 GB, free: 6.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.3698, allocations: 91.34 kB / 0.5396 GB, free: 6.316 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002062/0.37, allocations: 199.6 kB / 0.5398 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004163/0.3704, allocations: 432 kB / 0.5402 GB, free: 5.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.3716, allocations: 1.032 MB / 0.5412 GB, free: 4.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3716, allocations: 1.312 kB / 0.5412 GB, free: 4.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3716, allocations: 0 / 0.5412 GB, free: 4.984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.3716, allocations: 0 / 0.5412 GB, free: 4.984 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.002295/0.3739, allocations: 1.327 MB / 0.5425 GB, free: 3.934 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.374, allocations: 9.812 kB / 0.5425 GB, free: 3.934 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001379/0.3741, allocations: 107.3 kB / 0.5426 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.3743, allocations: 120.4 kB / 0.5428 GB, free: 3.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001088/0.3754, allocations: 0.6704 MB / 0.5434 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.3755, allocations: 51.83 kB / 0.5435 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.3756, allocations: 61.72 kB / 0.5435 GB, free: 3.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.377, allocations: 0.7679 MB / 0.5443 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.3771, allocations: 5.125 kB / 0.5443 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-05/0.3771, allocations: 27.59 kB / 0.5443 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.3772, allocations: 15.91 kB / 0.5443 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.3785, allocations: 0.5495 MB / 0.5448 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003884/0.3824, allocations: 2.721 MB / 0.5475 GB, free: 44 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.3839, allocations: 0.6596 MB / 0.5481 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005715/0.3845, allocations: 283.4 kB / 0.5484 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.489e-05/0.3846, allocations: 11.92 kB / 0.5484 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.3846, allocations: 42.56 kB / 0.5485 GB, free: 15.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.425e-06/0.3846, allocations: 0 / 0.5485 GB, free: 15.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.001968/0.3866, allocations: 0.7972 MB / 0.5492 GB, free: 14.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002111/0.3868, allocations: 342.1 kB / 0.5496 GB, free: 13.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008914/0.3877, allocations: 0.7007 MB / 0.5503 GB, free: 13.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.269e-05/0.3878, allocations: 37.7 kB / 0.5503 GB, free: 13.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003909/0.3882, allocations: 444.9 kB / 0.5507 GB, free: 12.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.3884, allocations: 202.1 kB / 0.5509 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/0.3886, allocations: 106.2 kB / 0.551 GB, free: 12.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3887, allocations: 325.9 kB / 0.5513 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005551/0.3893, allocations: 231 kB / 0.5515 GB, free: 11.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007373/0.3901, allocations: 402.4 kB / 0.5519 GB, free: 11.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.3912, allocations: 0.5526 MB / 0.5525 GB, free: 10.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3912, allocations: 0 / 0.5525 GB, free: 10.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00278/0.394, allocations: 1.037 MB / 0.5535 GB, free: 9.664 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.3941, allocations: 8 kB / 0.5535 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.3941, allocations: 4 kB / 0.5535 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.3953, allocations: 327.3 kB / 0.5538 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005454/0.3959, allocations: 123.9 kB / 0.5539 GB, free: 9.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/0.406, allocations: 7.277 MB / 0.561 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000759/0.4068, allocations: 79.58 kB / 0.5611 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-05/0.4068, allocations: 20 kB / 0.5611 GB, free: 1.262 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000729/0.4075, allocations: 349.1 kB / 0.5615 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005376/0.4081, allocations: 359.5 kB / 0.5618 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009105/0.409, allocations: 0.4972 MB / 0.5623 GB, free: 15.97 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.913e-06/0.409, allocations: 0 / 0.5623 GB, free: 15.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001679/0.4107, allocations: 0.7514 MB / 0.563 GB, free: 15.21 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.4107, allocations: 8 kB / 0.563 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.4107, allocations: 4 kB / 0.563 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005403/0.4113, allocations: 141.8 kB / 0.5632 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007396/0.412, allocations: 171.8 kB / 0.5633 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004126/0.4162, allocations: 3.427 MB / 0.5667 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.4168, allocations: 71.7 kB / 0.5667 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.815e-05/0.4169, allocations: 20 kB / 0.5668 GB, free: 11.1 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.0002674/0.4172, allocations: 216.1 kB / 0.567 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002712/0.4174, allocations: 103.3 kB / 0.5671 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002434/0.4177, allocations: 99.16 kB / 0.5672 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.4177, allocations: 4 kB / 0.5672 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.4177, allocations: 4 kB / 0.5672 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.4177, allocations: 192 / 0.5672 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/0.4189, allocations: 0.739 MB / 0.5679 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4189, allocations: 0 / 0.5679 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005727/0.4195, allocations: 111.9 kB / 0.568 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.491e-05/0.4195, allocations: 7.875 kB / 0.568 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.908e-05/0.4196, allocations: 15.94 kB / 0.568 GB, free: 9.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.4196, allocations: 12.09 kB / 0.568 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4196, allocations: 0 / 0.568 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002023/0.4216, allocations: 1.209 MB / 0.5692 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003045/0.4219, allocations: 224.2 kB / 0.5694 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.791e-05/0.422, allocations: 16 kB / 0.5694 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000525/0.4226, allocations: 39.95 kB / 0.5695 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.4227, allocations: 39.89 kB / 0.5695 GB, free: 8.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.243e-05/0.4227, allocations: 12 kB / 0.5695 GB, free: 8.168 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006686/0.4234, allocations: 487 kB / 0.57 GB, free: 7.699 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4234, allocations: 0 / 0.57 GB, free: 7.699 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001125/0.4245, allocations: 283.4 kB / 0.5703 GB, free: 7.422 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.00258/0.4271, allocations: 1.766 MB / 0.572 GB, free: 5.621 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004544/0.4317, allocations: 1.881 MB / 0.5738 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.4317, allocations: 0 / 0.5738 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006301/0.4323, allocations: 279.7 kB / 0.5741 GB, free: 3.395 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001588/0.4339, allocations: 238.3 kB / 0.5743 GB, free: 3.176 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.448, allocations: 7.225 MB / 0.5814 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008886/0.4489, allocations: 0.9809 MB / 0.5823 GB, free: 10.69 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005173/0.4495, allocations: 89.11 kB / 0.5824 GB, free: 10.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00053/0.45, allocations: 323.3 kB / 0.5827 GB, free: 10.29 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.45, allocations: 3.938 kB / 0.5827 GB, free: 10.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06368/0.5137, allocations: 20.32 MB / 0.6026 GB, free: 6.105 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.49, allocations: 6.438 kB / 0.6026 GB, free: 6.102 MB / 462.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)