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.001222/0.001222, allocations: 103.7 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.001323/0.001323, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2647/0.2647, allocations: 46.12 MB / 344.2 MB, free: 11.58 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.002284/0.002284, allocations: 84.3 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1251, allocations: 62.45 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005878/0.1311, allocations: 4.356 MB / 484.6 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.1341, allocations: 1.57 MB / 486.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004794/0.1346, allocations: 39.81 kB / 486.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000401/0.1351, allocations: 162.2 kB / 486.3 MB, free: 15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003757/0.1355, allocations: 162.2 kB / 486.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.1367, allocations: 0.5965 MB / 487.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.1378, allocations: 1.011 MB / 488.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006322/0.1384, allocations: 447 kB / 488.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003822/0.1388, allocations: 354.3 kB / 488.9 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00038/0.1392, allocations: 389.7 kB / 489.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.1393, allocations: 84 kB / 489.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.1395, allocations: 88 kB / 489.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.1396, allocations: 199.2 kB / 489.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003476/0.14, allocations: 437.2 kB / 490 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008739/0.1409, allocations: 0.9812 MB / 491 MB, free: 10.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1409, allocations: 4 kB / 491 MB, free: 10.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1409, allocations: 0 / 491 MB, free: 10.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.1409, allocations: 0 / 491 MB, free: 10.28 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.002038/0.1429, allocations: 1.292 MB / 492.3 MB, free: 8.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.143, allocations: 12.03 kB / 492.3 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001296/0.1431, allocations: 106.7 kB / 492.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.1433, allocations: 115.5 kB / 492.6 MB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007868/0.1441, allocations: 0.6164 MB / 493.2 MB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.317e-05/0.1441, allocations: 49.69 kB / 493.2 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.1442, allocations: 64.38 kB / 493.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001369/0.1456, allocations: 0.7697 MB / 494.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.1457, allocations: 7.875 kB / 494.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.84e-05/0.1457, allocations: 28 kB / 494.1 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.011e-05/0.1457, allocations: 19.98 kB / 494.1 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.1469, allocations: 0.5423 MB / 494.6 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003371/0.1503, allocations: 2.725 MB / 497.4 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.1517, allocations: 0.6594 MB / 498 MB, free: 2.969 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006138/0.1523, allocations: 279.3 kB / 498.3 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.1523, allocations: 15.92 kB / 498.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.1524, allocations: 42.56 kB / 498.4 MB, free: 2.617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.883e-06/0.1524, allocations: 0 / 498.4 MB, free: 2.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.00185/0.1542, allocations: 0.8 MB / 499.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001981/0.1544, allocations: 350.1 kB / 499.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008166/0.1553, allocations: 0.6967 MB / 0.4885 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.192e-05/0.1553, allocations: 33.7 kB / 0.4885 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003413/0.1557, allocations: 428.5 kB / 0.4889 GB, free: 228 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.1558, allocations: 189.3 kB / 0.4891 GB, free: 36 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.156, allocations: 114.2 kB / 0.4892 GB, free: 15.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1562, allocations: 333.9 kB / 0.4895 GB, free: 15.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005138/0.1567, allocations: 227 kB / 0.4897 GB, free: 15.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006678/0.1574, allocations: 391.5 kB / 0.4901 GB, free: 14.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.1585, allocations: 0.5631 MB / 0.4907 GB, free: 14.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1585, allocations: 0 / 0.4907 GB, free: 14.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002691/0.1612, allocations: 1.041 MB / 0.4917 GB, free: 13.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1612, allocations: 4 kB / 0.4917 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1613, allocations: 4 kB / 0.4917 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001198/0.1625, allocations: 327.4 kB / 0.492 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005499/0.163, allocations: 127.9 kB / 0.4921 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009472/0.1725, allocations: 7.271 MB / 0.4992 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006016/0.1731, allocations: 87.45 kB / 0.4993 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/0.1732, allocations: 20 kB / 0.4993 GB, free: 4.852 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006606/0.1739, allocations: 345.2 kB / 0.4997 GB, free: 4.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005288/0.1744, allocations: 355.4 kB / 0.5 GB, free: 4.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008434/0.1753, allocations: 0.4927 MB / 0.5005 GB, free: 3.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.054e-06/0.1753, allocations: 0 / 0.5005 GB, free: 3.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001587/0.1769, allocations: 0.7459 MB / 0.5012 GB, free: 2.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.1769, allocations: 6.656 kB / 0.5012 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1769, allocations: 4 kB / 0.5012 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004937/0.1774, allocations: 145.8 kB / 0.5014 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007117/0.1781, allocations: 175.8 kB / 0.5015 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1927/0.3708, allocations: 3.414 MB / 0.5049 GB, free: 38.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006896/0.3716, allocations: 65.75 kB / 0.5049 GB, free: 38.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.3716, allocations: 24.62 kB / 0.5049 GB, free: 38.82 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.0002241/0.3718, allocations: 217.5 kB / 0.5052 GB, free: 38.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/0.372, allocations: 89.78 kB / 0.5052 GB, free: 38.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002031/0.3722, allocations: 96.23 kB / 0.5053 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3723, allocations: 6 kB / 0.5053 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3723, allocations: 2.719 kB / 0.5053 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.3723, allocations: 4.266 kB / 0.5053 GB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3733, allocations: 0.7369 MB / 0.5061 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.015e-05/0.3733, allocations: 0 / 0.5061 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.3739, allocations: 111.7 kB / 0.5062 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.3739, allocations: 6.469 kB / 0.5062 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.678e-05/0.3739, allocations: 15.8 kB / 0.5062 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.189e-06/0.3739, allocations: 10.81 kB / 0.5062 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.374, allocations: 4.094 kB / 0.5062 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.3757, allocations: 1.203 MB / 0.5074 GB, free: 38.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.376, allocations: 215.3 kB / 0.5076 GB, free: 37.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.209e-05/0.3761, allocations: 13.91 kB / 0.5076 GB, free: 37.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/0.3766, allocations: 45.02 kB / 0.5076 GB, free: 37.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.3767, allocations: 39.64 kB / 0.5077 GB, free: 37.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.3767, allocations: 15.06 kB / 0.5077 GB, free: 37.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000619/0.3773, allocations: 487.8 kB / 0.5082 GB, free: 37.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3773, allocations: 0 / 0.5082 GB, free: 37.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009563/0.3783, allocations: 282.2 kB / 0.5084 GB, free: 37.85 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.001953/0.3803, allocations: 1.758 MB / 0.5101 GB, free: 36.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003902/0.3842, allocations: 1.904 MB / 0.512 GB, free: 35.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.3842, allocations: 1.406 kB / 0.512 GB, free: 35.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005791/0.3848, allocations: 281.5 kB / 0.5123 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.001715/0.3865, allocations: 237.7 kB / 0.5125 GB, free: 35.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/0.4006, allocations: 7.541 MB / 0.5199 GB, free: 31.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005946/0.4013, allocations: 0.9811 MB / 0.5208 GB, free: 30.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005834/0.4019, allocations: 93.58 kB / 0.5209 GB, free: 30.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.4023, allocations: 321.7 kB / 0.5212 GB, free: 30.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4023, allocations: 0 / 0.5212 GB, free: 30.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07243/0.4747, allocations: 20.03 MB / 0.5408 GB, free: 17.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.12, allocations: 19.97 kB / 0.5408 GB, free: 17.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe 2>&1)