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.00108/0.00108, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2292/0.2292, allocations: 46.18 MB / 345.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003022/0.0003022, allocations: 8 kB / 419.6 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1292, allocations: 63.56 MB / 483.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004321/0.1336, allocations: 3.9 MB / 487.1 MB, free: 168 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002989/0.1366, allocations: 1.535 MB / 488.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004229/0.1371, allocations: 31.81 kB / 488.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003037/0.1374, allocations: 118.9 kB / 488.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.1377, allocations: 114.9 kB / 488.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.1388, allocations: 0.5448 MB / 489.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008465/0.1396, allocations: 0.949 MB / 490.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005507/0.1402, allocations: 407.1 kB / 490.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.1405, allocations: 274.2 kB / 491 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.1408, allocations: 297.8 kB / 491.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.316e-05/0.1408, allocations: 23.94 kB / 491.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.85e-05/0.1409, allocations: 24 kB / 491.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-05/0.141, allocations: 119.2 kB / 491.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.1413, allocations: 378.9 kB / 491.9 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006725/0.142, allocations: 0.8833 MB / 492.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.142, allocations: 0 / 492.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.142, allocations: 4 kB / 492.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.142, allocations: 4 kB / 492.7 MB, free: 10.45 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.001656/0.1436, allocations: 1.133 MB / 493.9 MB, free: 9.262 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.1437, allocations: 8.875 kB / 493.9 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000121/0.1438, allocations: 106.7 kB / 494 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.144, allocations: 115.5 kB / 494.1 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007554/0.1447, allocations: 0.6281 MB / 494.7 MB, free: 8.359 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/0.1448, allocations: 49.69 kB / 494.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.491e-05/0.1449, allocations: 60.38 kB / 494.8 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.1462, allocations: 0.8048 MB / 495.6 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1462, allocations: 4 kB / 495.6 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.001e-05/0.1463, allocations: 28 kB / 495.7 MB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.1463, allocations: 16 kB / 495.7 MB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001197/0.1475, allocations: 0.5891 MB / 496.3 MB, free: 6.742 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.1508, allocations: 2.749 MB / 499 MB, free: 3.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.1522, allocations: 0.7328 MB / 499.8 MB, free: 3.129 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005917/0.1528, allocations: 311.2 kB / 0.4883 GB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.798e-05/0.1528, allocations: 4 kB / 0.4883 GB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.1529, allocations: 38.56 kB / 0.4884 GB, free: 2.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.535e-06/0.1529, allocations: 0 / 0.4884 GB, free: 2.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.002027/0.1549, allocations: 0.871 MB / 0.4892 GB, free: 1.887 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002182/0.1552, allocations: 350.1 kB / 0.4896 GB, free: 1.465 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008564/0.156, allocations: 0.6967 MB / 0.4902 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/0.1561, allocations: 37.7 kB / 0.4903 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.1565, allocations: 436.5 kB / 0.4907 GB, free: 288 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001383/0.1566, allocations: 181.3 kB / 0.4909 GB, free: 104 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.479e-05/0.1567, allocations: 53.69 kB / 0.4909 GB, free: 44 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1569, allocations: 329.9 kB / 0.4912 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005563/0.1574, allocations: 252.9 kB / 0.4915 GB, free: 15.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006546/0.1581, allocations: 415.5 kB / 0.4919 GB, free: 15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.1593, allocations: 0.6093 MB / 0.4925 GB, free: 14.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1593, allocations: 0 / 0.4925 GB, free: 14.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002855/0.1622, allocations: 1.169 MB / 0.4936 GB, free: 13.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000179/0.1624, allocations: 174.2 kB / 0.4938 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.1624, allocations: 7.938 kB / 0.4938 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.1637, allocations: 359.1 kB / 0.4941 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005738/0.1643, allocations: 135.8 kB / 0.4943 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008982/0.1733, allocations: 7.065 MB / 0.5012 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006064/0.1739, allocations: 103.4 kB / 0.5013 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.174, allocations: 20 kB / 0.5013 GB, free: 4.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/0.174, allocations: 7.938 kB / 0.5013 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001429/0.1754, allocations: 0.6678 MB / 0.5019 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1754, allocations: 4 kB / 0.5019 GB, free: 4.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000471/0.1759, allocations: 145.8 kB / 0.5021 GB, free: 3.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007066/0.1766, allocations: 179.8 kB / 0.5023 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/0.1799, allocations: 3.264 MB / 0.5054 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005152/0.1804, allocations: 75.52 kB / 0.5055 GB, free: 120 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.1805, allocations: 20 kB / 0.5055 GB, free: 100 kB / 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.2421/0.4225, allocations: 290.2 kB / 0.5058 GB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003225/0.4229, allocations: 90.61 kB / 0.5059 GB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002409/0.4231, allocations: 96.64 kB / 0.506 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.4232, allocations: 8.75 kB / 0.506 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4232, allocations: 0.625 kB / 0.506 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.4232, allocations: 4.312 kB / 0.506 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001237/0.4244, allocations: 0.7379 MB / 0.5067 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4244, allocations: 2 kB / 0.5067 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006262/0.4251, allocations: 125.2 kB / 0.5068 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.4251, allocations: 3.438 kB / 0.5068 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.445e-05/0.4251, allocations: 11.05 kB / 0.5069 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.892e-06/0.4251, allocations: 3.562 kB / 0.5069 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.4251, allocations: 3.75 kB / 0.5069 GB, free: 38.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001954/0.4271, allocations: 1.28 MB / 0.5081 GB, free: 37.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002547/0.4274, allocations: 214.5 kB / 0.5083 GB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.478e-05/0.4275, allocations: 16.62 kB / 0.5083 GB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.4281, allocations: 58.27 kB / 0.5084 GB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.4282, allocations: 36.91 kB / 0.5084 GB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.619e-05/0.4282, allocations: 14.11 kB / 0.5084 GB, free: 37.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005986/0.4288, allocations: 490.4 kB / 0.5089 GB, free: 37.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4288, allocations: 0 / 0.5089 GB, free: 37.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001764/0.4306, allocations: 277.5 kB / 0.5092 GB, free: 37.54 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.001993/0.4326, allocations: 1.84 MB / 0.511 GB, free: 36.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003891/0.4365, allocations: 2.03 MB / 0.5129 GB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.4365, allocations: 1.062 kB / 0.5129 GB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005935/0.4371, allocations: 309.3 kB / 0.5132 GB, free: 35.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.4385, allocations: 209.9 kB / 0.5134 GB, free: 35.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/0.4509, allocations: 8.151 MB / 0.5214 GB, free: 31.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000508/0.4514, allocations: 0.9812 MB / 0.5224 GB, free: 30.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004709/0.4519, allocations: 95.36 kB / 0.5225 GB, free: 30.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003564/0.4523, allocations: 329.1 kB / 0.5228 GB, free: 30.38 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4523, allocations: 0 / 0.5228 GB, free: 30.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03454/0.4868, allocations: 18.89 MB / 0.5412 GB, free: 18.06 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.487, allocations: 207.2 kB / 0.5414 GB, free: 17.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.302/2.789, allocations: 4 kB / 0.5414 GB, free: 17.8 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