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.001146/0.001146, allocations: 99.67 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001298, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2398/0.2398, allocations: 45.92 MB / 344 MB, free: 12.1 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002778, allocations: 7.984 kB / 418.1 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 63.47 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004213/0.1447, allocations: 3.674 MB / 485.2 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.1476, allocations: 1.481 MB / 486.7 MB, free: 96 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004164/0.148, allocations: 31.81 kB / 486.7 MB, free: 64 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.1482, allocations: 67.23 kB / 486.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006755/0.1489, allocations: 226.9 kB / 487 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009947/0.1499, allocations: 494.1 kB / 487.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008428/0.1507, allocations: 0.63 MB / 488.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000459/0.1512, allocations: 302.5 kB / 488.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002756/0.1515, allocations: 262.6 kB / 488.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003362/0.1518, allocations: 286.1 kB / 488.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.297e-05/0.1519, allocations: 24 kB / 489 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.235e-05/0.152, allocations: 24 kB / 489 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.1521, allocations: 111.3 kB / 489.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.1522, allocations: 169.1 kB / 489.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006209/0.1529, allocations: 0.6978 MB / 490 MB, free: 12.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.385e-06/0.1529, allocations: 0 / 490 MB, free: 12.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.1529, allocations: 0 / 490 MB, free: 12.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1529, allocations: 3.938 kB / 490 MB, free: 12.8 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.001756/0.1547, allocations: 1.148 MB / 491.1 MB, free: 11.6 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1547, allocations: 12.03 kB / 491.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001229/0.1548, allocations: 110.5 kB / 491.2 MB, free: 11.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.155, allocations: 114.6 kB / 491.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008148/0.1558, allocations: 0.5924 MB / 491.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.1559, allocations: 45.31 kB / 492 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.156, allocations: 68 kB / 492 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/0.1573, allocations: 0.785 MB / 492.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.1573, allocations: 0 / 492.8 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-05/0.1574, allocations: 28 kB / 492.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.1574, allocations: 19.98 kB / 492.9 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.1586, allocations: 0.5891 MB / 493.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/0.1621, allocations: 2.741 MB / 496.2 MB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001561/0.1637, allocations: 0.7373 MB / 496.9 MB, free: 5.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.242e-05/0.1638, allocations: 12.03 kB / 496.9 MB, free: 5.492 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.1638, allocations: 51.5 kB / 497 MB, free: 5.434 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.663e-06/0.1638, allocations: 0 / 497 MB, free: 5.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001911/0.1657, allocations: 0.8671 MB / 497.9 MB, free: 4.562 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.1659, allocations: 342.1 kB / 498.2 MB, free: 4.148 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/0.1668, allocations: 0.6968 MB / 498.9 MB, free: 3.441 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.1668, allocations: 37.7 kB / 498.9 MB, free: 3.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003421/0.1672, allocations: 444.3 kB / 499.4 MB, free: 2.957 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.1673, allocations: 177.4 kB / 499.5 MB, free: 2.781 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.1674, allocations: 12 kB / 499.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1675, allocations: 326 kB / 499.9 MB, free: 2.445 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005336/0.168, allocations: 245 kB / 0.4884 GB, free: 2.203 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006629/0.1687, allocations: 416 kB / 0.4888 GB, free: 1.734 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005489/0.1693, allocations: 281.2 kB / 0.4891 GB, free: 1.465 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1693, allocations: 0 / 0.4891 GB, free: 1.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00266/0.172, allocations: 1.15 MB / 0.4902 GB, free: 304 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006319/0.1726, allocations: 1.138 MB / 0.4913 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.1726, allocations: 4 kB / 0.4913 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001287/0.1739, allocations: 359.1 kB / 0.4916 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.1745, allocations: 135.8 kB / 0.4918 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009009/0.1835, allocations: 7.183 MB / 0.4988 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007925/0.1843, allocations: 99.39 kB / 0.4989 GB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/0.1844, allocations: 31.94 kB / 0.4989 GB, free: 6.727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.1844, allocations: 4 kB / 0.4989 GB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001521/0.1859, allocations: 0.6642 MB / 0.4996 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.186, allocations: 7.984 kB / 0.4996 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005365/0.1865, allocations: 149.9 kB / 0.4997 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007325/0.1873, allocations: 179.8 kB / 0.4999 GB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003618/0.1909, allocations: 3.303 MB / 0.5031 GB, free: 2.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/0.1916, allocations: 79.56 kB / 0.5032 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.1916, allocations: 20 kB / 0.5032 GB, free: 2.051 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005939/0.1922, allocations: 289 kB / 0.5035 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000243/0.1925, allocations: 90.88 kB / 0.5036 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.1927, allocations: 95.16 kB / 0.5037 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.1927, allocations: 12 kB / 0.5037 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1927, allocations: 0 / 0.5037 GB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1927, allocations: 7.922 kB / 0.5037 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1939, allocations: 0.7311 MB / 0.5044 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.1939, allocations: 7.953 kB / 0.5044 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005894/0.1945, allocations: 127.8 kB / 0.5045 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.298e-06/0.1945, allocations: 4 kB / 0.5045 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.1946, allocations: 12 kB / 0.5045 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.1946, allocations: 4 kB / 0.5045 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1946, allocations: 3.938 kB / 0.5045 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2736/0.4681, allocations: 1.31 MB / 0.5058 GB, free: 39.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003761/0.4686, allocations: 219.4 kB / 0.506 GB, free: 39.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.31e-05/0.4687, allocations: 12.11 kB / 0.506 GB, free: 39.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005746/0.4692, allocations: 56.67 kB / 0.5061 GB, free: 39.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.4694, allocations: 32.34 kB / 0.5061 GB, free: 39.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.513e-05/0.4694, allocations: 16.08 kB / 0.5061 GB, free: 39.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008068/0.4703, allocations: 484 kB / 0.5066 GB, free: 39.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4703, allocations: 0 / 0.5066 GB, free: 39.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001161/0.4714, allocations: 276.9 kB / 0.5069 GB, free: 39.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002739/0.4742, allocations: 2.078 MB / 0.5089 GB, free: 38.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004988/0.4792, allocations: 2.022 MB / 0.5109 GB, free: 37.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.4792, allocations: 1.125 kB / 0.5109 GB, free: 37.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007063/0.4799, allocations: 301.6 kB / 0.5112 GB, free: 37.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.4812, allocations: 201 kB / 0.5113 GB, free: 37.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009932/0.4911, allocations: 7.088 MB / 0.5183 GB, free: 33.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006274/0.4918, allocations: 0.9992 MB / 0.5192 GB, free: 32.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005151/0.4923, allocations: 94.38 kB / 0.5193 GB, free: 32.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.4927, allocations: 323.3 kB / 0.5196 GB, free: 32.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4927, allocations: 0 / 0.5196 GB, free: 32.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03456/0.5273, allocations: 18.52 MB / 0.5377 GB, free: 22.14 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/0.5275, allocations: 192 kB / 0.5379 GB, free: 21.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.289/2.817, allocations: 7.938 kB / 0.5379 GB, free: 21.89 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat does not exist to compare? outputFormat=mat