Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimPID,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009852/0.0009852, allocations: 96.86 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 182.9 kB / 16.91 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.712/1.712, allocations: 205.4 MB / 223.1 MB, free: 5.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4179/0.4179, allocations: 43.57 MB / 315 MB, free: 8.723 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005522/0.0005523, allocations: 12 kB / 384.7 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1275, allocations: 58.86 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005018/0.1326, allocations: 3.958 MB / 447.5 MB, free: 8.609 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003592/0.1362, allocations: 1.559 MB / 449.1 MB, free: 7.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.1374, allocations: 35.75 kB / 449.1 MB, free: 7.004 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000553/0.138, allocations: 118.8 kB / 449.2 MB, free: 6.887 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008091/0.1388, allocations: 134.8 kB / 449.3 MB, free: 6.754 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001482/0.1403, allocations: 0.5228 MB / 449.9 MB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.1419, allocations: 0.9723 MB / 450.8 MB, free: 5.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008108/0.1427, allocations: 431.3 kB / 451.2 MB, free: 4.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004753/0.1432, allocations: 270.2 kB / 451.5 MB, free: 4.547 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.1437, allocations: 301.7 kB / 451.8 MB, free: 4.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001559/0.1438, allocations: 24 kB / 451.8 MB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.1439, allocations: 23.94 kB / 451.9 MB, free: 4.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1441, allocations: 115.3 kB / 452 MB, free: 4.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003968/0.1445, allocations: 386.9 kB / 452.3 MB, free: 3.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008776/0.1454, allocations: 0.8986 MB / 453.2 MB, free: 2.801 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1454, allocations: 0 / 453.2 MB, free: 2.801 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1454, allocations: 4 kB / 453.2 MB, free: 2.797 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.863e-05/0.1454, allocations: 0 / 453.2 MB, free: 2.797 MB / 382.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.002224/0.1477, allocations: 1.152 MB / 454.4 MB, free: 1.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/0.1477, allocations: 16.02 kB / 454.4 MB, free: 1.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002099/0.148, allocations: 102.7 kB / 454.5 MB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.1482, allocations: 119.5 kB / 454.6 MB, free: 1.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009935/0.1492, allocations: 0.6475 MB / 455.3 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.21e-05/0.1493, allocations: 45.69 kB / 455.3 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.1494, allocations: 64.38 kB / 455.4 MB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2617/0.4111, allocations: 0.7632 MB / 456.2 MB, free: 45.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.4112, allocations: 0 / 456.2 MB, free: 45.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.81e-05/0.4113, allocations: 29.39 kB / 456.2 MB, free: 45.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.4113, allocations: 14.62 kB / 456.2 MB, free: 45.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.4128, allocations: 0.6035 MB / 456.8 MB, free: 45.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003037/0.4158, allocations: 2.75 MB / 459.5 MB, free: 44.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.4171, allocations: 0.7215 MB / 460.3 MB, free: 43.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004938/0.4176, allocations: 310 kB / 460.6 MB, free: 43.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.82e-05/0.4176, allocations: 8.969 kB / 460.6 MB, free: 43.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.4177, allocations: 44.12 kB / 460.6 MB, free: 43.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 2.144e-06/0.4177, allocations: 0 / 460.6 MB, free: 43.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001779/0.4195, allocations: 0.8754 MB / 461.5 MB, free: 43.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.4195, allocations: 237.3 kB / 461.7 MB, free: 43.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000676/0.4202, allocations: 0.7202 MB / 462.5 MB, free: 43.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.4203, allocations: 36.67 kB / 462.5 MB, free: 43.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002796/0.4205, allocations: 442.4 kB / 462.9 MB, free: 43.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.4207, allocations: 187.1 kB / 463.1 MB, free: 43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.304e-05/0.4208, allocations: 56.47 kB / 463.2 MB, free: 42.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.332e-05/0.4208, allocations: 330.8 kB / 463.5 MB, free: 42.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005311/0.4214, allocations: 248.4 kB / 463.7 MB, free: 42.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006052/0.422, allocations: 393.6 kB / 464.1 MB, free: 42.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009635/0.423, allocations: 0.6027 MB / 464.7 MB, free: 42.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.423, allocations: 0 / 464.7 MB, free: 42.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002563/0.4255, allocations: 1.164 MB / 465.9 MB, free: 42.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.4257, allocations: 173.7 kB / 466 MB, free: 42.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.4257, allocations: 5.906 kB / 466 MB, free: 42.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/0.4269, allocations: 347.2 kB / 466.4 MB, free: 41.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005205/0.4274, allocations: 139.6 kB / 466.5 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007254/0.4347, allocations: 7.074 MB / 473.6 MB, free: 36.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000664/0.4354, allocations: 92.27 kB / 473.7 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.016e-05/0.4354, allocations: 20.44 kB / 473.7 MB, free: 36.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.4355, allocations: 2.938 kB / 473.7 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001394/0.4369, allocations: 0.6747 MB / 474.4 MB, free: 36.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.4369, allocations: 6.578 kB / 474.4 MB, free: 36.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004708/0.4374, allocations: 149.9 kB / 474.5 MB, free: 36.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006743/0.438, allocations: 181.7 kB / 474.7 MB, free: 36.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/0.4409, allocations: 3.276 MB / 478 MB, free: 33.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005201/0.4414, allocations: 70.62 kB / 478.1 MB, free: 33.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.4415, allocations: 20.69 kB / 478.1 MB, free: 33.31 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.0004501/0.4419, allocations: 288.1 kB / 478.4 MB, free: 33.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.4422, allocations: 97.03 kB / 478.5 MB, free: 33 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001981/0.4424, allocations: 100.4 kB / 478.6 MB, free: 32.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.4424, allocations: 10.69 kB / 478.6 MB, free: 32.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.4424, allocations: 0 / 478.6 MB, free: 32.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.4424, allocations: 6.344 kB / 478.6 MB, free: 32.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.4434, allocations: 0.7352 MB / 479.3 MB, free: 32.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4435, allocations: 7.312 kB / 479.3 MB, free: 32.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005137/0.444, allocations: 121.5 kB / 479.4 MB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.444, allocations: 3.344 kB / 479.4 MB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.377e-05/0.444, allocations: 13.05 kB / 479.4 MB, free: 32.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.188e-06/0.4441, allocations: 10.36 kB / 479.5 MB, free: 32.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4441, allocations: 0 / 479.5 MB, free: 32.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.446, allocations: 1.28 MB / 480.7 MB, free: 31.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.4462, allocations: 213.4 kB / 480.9 MB, free: 31.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.914e-05/0.4463, allocations: 11.19 kB / 481 MB, free: 31.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004703/0.4468, allocations: 53.64 kB / 481 MB, free: 31.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.4469, allocations: 36.56 kB / 481 MB, free: 31.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.447, allocations: 13.34 kB / 481.1 MB, free: 31.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005254/0.4475, allocations: 0.4894 MB / 481.5 MB, free: 31.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4475, allocations: 0 / 481.5 MB, free: 31.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009236/0.4484, allocations: 282 kB / 481.8 MB, free: 31.33 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.001913/0.4503, allocations: 1.861 MB / 483.7 MB, free: 30.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00373/0.4541, allocations: 2.021 MB / 485.7 MB, free: 29.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.4541, allocations: 0 / 485.7 MB, free: 29.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005352/0.4547, allocations: 313.1 kB / 486 MB, free: 28.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00155/0.4562, allocations: 221.5 kB / 486.2 MB, free: 28.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01449/0.4707, allocations: 8.263 MB / 494.5 MB, free: 24.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006621/0.4714, allocations: 0.9865 MB / 495.5 MB, free: 23.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005195/0.472, allocations: 95.14 kB / 495.6 MB, free: 23.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004827/0.4725, allocations: 337.3 kB / 495.9 MB, free: 23.29 MB / 382.1 MB Notification: Performance of SimCode: time 1.422e-06/0.4725, allocations: 0 / 495.9 MB, free: 23.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04679/0.5193, allocations: 19.12 MB / 0.5029 GB, free: 18.54 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001756/0.5195, allocations: 213.9 kB / 0.5032 GB, free: 18.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.747, allocations: 0 / 0.5032 GB, free: 18.27 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimPID_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimPID.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches