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.001354/0.001354, allocations: 115 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001234, allocations: 205.8 kB / 18.27 MB, free: 5.09 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.4 MB, free: 9.055 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2177/0.2177, allocations: 46.1 MB / 343.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 76.28 kB / 417.1 MB, free: 19.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1237, allocations: 62.46 MB / 479.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006084/0.1298, allocations: 4.343 MB / 483.9 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003711/0.1336, allocations: 1.542 MB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008843/0.1345, allocations: 35.81 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005847/0.1351, allocations: 114.9 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008631/0.136, allocations: 114.9 kB / 485.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.1377, allocations: 0.5565 MB / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001608/0.1393, allocations: 1.012 MB / 487.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008335/0.1402, allocations: 435.1 kB / 487.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005854/0.1408, allocations: 374.1 kB / 488.1 MB, free: 12.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004958/0.1413, allocations: 389.7 kB / 488.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002257/0.1415, allocations: 88 kB / 488.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001732/0.1417, allocations: 84 kB / 488.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002271/0.1419, allocations: 199.2 kB / 488.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004807/0.1424, allocations: 437.2 kB / 489.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.1435, allocations: 0.9734 MB / 490.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1435, allocations: 0 / 490.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1435, allocations: 4 kB / 490.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.685e-05/0.1435, allocations: 0 / 490.2 MB, free: 10.77 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.002468/0.146, allocations: 1.288 MB / 491.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.1461, allocations: 16.02 kB / 491.5 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.1462, allocations: 102.7 kB / 491.6 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.1464, allocations: 119.5 kB / 491.8 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008687/0.1473, allocations: 0.6203 MB / 492.4 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.434e-05/0.1474, allocations: 49.69 kB / 492.4 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-05/0.1475, allocations: 64.38 kB / 492.5 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/0.1488, allocations: 0.773 MB / 493.3 MB, free: 7.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.1489, allocations: 3.938 kB / 493.3 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.351e-05/0.1489, allocations: 28 kB / 493.3 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.1489, allocations: 19.94 kB / 493.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.1501, allocations: 0.5462 MB / 493.9 MB, free: 6.973 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003595/0.1537, allocations: 2.717 MB / 496.6 MB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.1551, allocations: 0.6671 MB / 497.3 MB, free: 3.453 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000539/0.1556, allocations: 283.3 kB / 497.5 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.215e-05/0.1557, allocations: 4 kB / 497.5 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.1557, allocations: 46.5 kB / 497.6 MB, free: 3.105 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.354e-06/0.1558, allocations: 0 / 497.6 MB, free: 3.105 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001812/0.1576, allocations: 0.8003 MB / 498.4 MB, free: 2.301 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001652/0.1577, allocations: 346.1 kB / 498.7 MB, free: 1.883 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008028/0.1586, allocations: 0.6967 MB / 499.4 MB, free: 1.172 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.064e-05/0.1586, allocations: 41.7 kB / 499.5 MB, free: 1.125 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.1589, allocations: 428.5 kB / 499.9 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.1591, allocations: 185.3 kB / 0.4883 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.1593, allocations: 110.1 kB / 0.4884 GB, free: 416 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.1594, allocations: 333.9 kB / 0.4888 GB, free: 76 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005477/0.1599, allocations: 227.1 kB / 0.489 GB, free: 15.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006475/0.1606, allocations: 399.4 kB / 0.4894 GB, free: 15.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.1617, allocations: 0.5588 MB / 0.4899 GB, free: 14.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1617, allocations: 4 kB / 0.4899 GB, free: 14.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002653/0.1644, allocations: 1.036 MB / 0.4909 GB, free: 13.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1644, allocations: 8 kB / 0.4909 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1644, allocations: 4 kB / 0.4909 GB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.1656, allocations: 323.4 kB / 0.4912 GB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005744/0.1662, allocations: 127.9 kB / 0.4914 GB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008652/0.1749, allocations: 7.26 MB / 0.4984 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006396/0.1756, allocations: 87.48 kB / 0.4985 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.059e-05/0.1757, allocations: 19.94 kB / 0.4986 GB, free: 5.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000648/0.1763, allocations: 349.2 kB / 0.4989 GB, free: 5.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005183/0.1768, allocations: 355.4 kB / 0.4992 GB, free: 4.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000788/0.1777, allocations: 496.3 kB / 0.4997 GB, free: 4.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.726e-06/0.1777, allocations: 7.875 kB / 0.4997 GB, free: 4.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001584/0.1793, allocations: 0.7424 MB / 0.5004 GB, free: 3.309 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1793, allocations: 8 kB / 0.5004 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1793, allocations: 0 / 0.5004 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005098/0.1798, allocations: 153.6 kB / 0.5006 GB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007263/0.1805, allocations: 168 kB / 0.5007 GB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2435/0.424, allocations: 3.421 MB / 0.5041 GB, free: 38.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007239/0.4248, allocations: 69.91 kB / 0.5041 GB, free: 38.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.4249, allocations: 25.41 kB / 0.5042 GB, free: 38.97 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.0002277/0.4251, allocations: 210.2 kB / 0.5044 GB, free: 38.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001855/0.4253, allocations: 92.5 kB / 0.5045 GB, free: 38.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.4255, allocations: 101.7 kB / 0.5046 GB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.4255, allocations: 6.188 kB / 0.5046 GB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.4255, allocations: 2.094 kB / 0.5046 GB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.4255, allocations: 6 kB / 0.5046 GB, free: 38.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.4266, allocations: 0.7339 MB / 0.5053 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4266, allocations: 0 / 0.5053 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.4272, allocations: 107.9 kB / 0.5054 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4272, allocations: 3.094 kB / 0.5054 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.4272, allocations: 12.45 kB / 0.5054 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.4272, allocations: 3.5 kB / 0.5054 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.4273, allocations: 5.344 kB / 0.5054 GB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.429, allocations: 1.214 MB / 0.5066 GB, free: 38.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.4293, allocations: 210.9 kB / 0.5068 GB, free: 38.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.462e-05/0.4293, allocations: 13.84 kB / 0.5068 GB, free: 38.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005113/0.4299, allocations: 42.66 kB / 0.5069 GB, free: 38.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.43, allocations: 43.7 kB / 0.5069 GB, free: 38.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.43, allocations: 15.02 kB / 0.5069 GB, free: 38.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006143/0.4306, allocations: 487 kB / 0.5074 GB, free: 38.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.82e-07/0.4306, allocations: 0 / 0.5074 GB, free: 38.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009697/0.4316, allocations: 279.9 kB / 0.5076 GB, free: 38.01 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.001931/0.4336, allocations: 1.76 MB / 0.5094 GB, free: 37.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004007/0.4376, allocations: 1.91 MB / 0.5112 GB, free: 36.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.4376, allocations: 1 kB / 0.5112 GB, free: 36.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005965/0.4382, allocations: 280.8 kB / 0.5115 GB, free: 36.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.4396, allocations: 231.6 kB / 0.5117 GB, free: 35.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.4528, allocations: 7.841 MB / 0.5194 GB, free: 31.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.4534, allocations: 0.9798 MB / 0.5203 GB, free: 30.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006123/0.454, allocations: 102.4 kB / 0.5204 GB, free: 30.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004157/0.4544, allocations: 324.6 kB / 0.5207 GB, free: 30.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4544, allocations: 0 / 0.5207 GB, free: 30.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03997/0.4944, allocations: 19.81 MB / 0.5401 GB, free: 17.65 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/0.4946, allocations: 208.2 kB / 0.5403 GB, free: 17.4 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.431/2.925, allocations: 0 / 0.5403 GB, free: 17.4 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimPID_res.mat","/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