Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001035/0.001035, allocations: 199.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 226.5 MB / 243.4 MB, free: 6.359 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000749/0.0007489, allocations: 99.3 kB / 295.5 MB, free: 6.641 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3053/0.3053, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002869/0.0002869, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3506, allocations: 62.96 MB / 0.5159 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.00324/0.3539, allocations: 3.663 MB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.3561, allocations: 1.514 MB / 0.5209 GB, free: 33.53 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003966/0.3565, allocations: 34.97 kB / 0.521 GB, free: 33.52 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000269/0.3568, allocations: 102.7 kB / 0.5211 GB, free: 33.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.3571, allocations: 129 kB / 0.5212 GB, free: 33.35 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008936/0.358, allocations: 436.3 kB / 0.5216 GB, free: 33.13 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007461/0.3587, allocations: 0.9091 MB / 0.5225 GB, free: 32.67 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004933/0.3593, allocations: 419.4 kB / 0.5229 GB, free: 32.43 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.3595, allocations: 253.9 kB / 0.5231 GB, free: 32.31 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00025/0.3597, allocations: 284.7 kB / 0.5234 GB, free: 32.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.452e-05/0.3598, allocations: 20.38 kB / 0.5234 GB, free: 32.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.651e-05/0.3599, allocations: 21.72 kB / 0.5234 GB, free: 32.15 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.154e-05/0.3599, allocations: 111.2 kB / 0.5235 GB, free: 32.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.3601, allocations: 351.8 kB / 0.5239 GB, free: 31.82 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004497/0.3606, allocations: 0.6985 MB / 0.5246 GB, free: 31.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3606, allocations: 4 kB / 0.5246 GB, free: 31.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3606, allocations: 0 / 0.5246 GB, free: 31.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.3606, allocations: 0 / 0.5246 GB, free: 31.64 MB / 378.7 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.001415/0.362, allocations: 1.135 MB / 0.5257 GB, free: 30.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3621, allocations: 11.72 kB / 0.5257 GB, free: 30.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.3622, allocations: 117.7 kB / 0.5258 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006155/0.3629, allocations: 0.6208 MB / 0.5264 GB, free: 30.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.3629, allocations: 47.41 kB / 0.5264 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-05/0.363, allocations: 65.97 kB / 0.5265 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.3641, allocations: 0.7565 MB / 0.5272 GB, free: 29.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3641, allocations: 3.344 kB / 0.5272 GB, free: 29.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.608e-05/0.3642, allocations: 28.91 kB / 0.5273 GB, free: 29.89 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.3642, allocations: 16.31 kB / 0.5273 GB, free: 29.89 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.3652, allocations: 0.5977 MB / 0.5279 GB, free: 29.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.368, allocations: 2.743 MB / 0.5306 GB, free: 27.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.3691, allocations: 0.7274 MB / 0.5313 GB, free: 27.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004691/0.3696, allocations: 304.3 kB / 0.5316 GB, free: 27.36 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.613e-05/0.3697, allocations: 5.75 kB / 0.5316 GB, free: 27.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.3697, allocations: 44.78 kB / 0.5316 GB, free: 27.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 2.675e-06/0.3697, allocations: 0 / 0.5316 GB, free: 27.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.001636/0.3714, allocations: 0.8612 MB / 0.5324 GB, free: 27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/0.3715, allocations: 241.4 kB / 0.5327 GB, free: 26.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006433/0.3721, allocations: 0.6964 MB / 0.5334 GB, free: 26.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.759e-05/0.3722, allocations: 36.73 kB / 0.5334 GB, free: 26.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.3724, allocations: 430.6 kB / 0.5338 GB, free: 26.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.613e-05/0.3725, allocations: 184.3 kB / 0.534 GB, free: 25.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.3725, allocations: 10.88 kB / 0.534 GB, free: 25.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.347e-05/0.3726, allocations: 330.4 kB / 0.5343 GB, free: 25.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/0.373, allocations: 244.2 kB / 0.5345 GB, free: 25.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004953/0.3735, allocations: 395.1 kB / 0.5349 GB, free: 25.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009124/0.3745, allocations: 0.5969 MB / 0.5355 GB, free: 24.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3745, allocations: 0 / 0.5355 GB, free: 24.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002406/0.3769, allocations: 1.163 MB / 0.5366 GB, free: 24.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.525e-05/0.377, allocations: 170.1 kB / 0.5368 GB, free: 24.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.377, allocations: 9.906 kB / 0.5368 GB, free: 24.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.3781, allocations: 359 kB / 0.5371 GB, free: 24.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005095/0.3787, allocations: 134.4 kB / 0.5373 GB, free: 24.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006861/0.3855, allocations: 7.06 MB / 0.5442 GB, free: 18.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005947/0.3862, allocations: 97.48 kB / 0.5443 GB, free: 18.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.345e-05/0.3862, allocations: 28.17 kB / 0.5443 GB, free: 18.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.3862, allocations: 4.375 kB / 0.5443 GB, free: 18.37 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001437/0.3877, allocations: 0.6702 MB / 0.5449 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3877, allocations: 3.312 kB / 0.5449 GB, free: 18.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005103/0.3882, allocations: 154.5 kB / 0.5451 GB, free: 18.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007178/0.3889, allocations: 172.8 kB / 0.5453 GB, free: 18.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002846/0.3918, allocations: 3.268 MB / 0.5485 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005995/0.3924, allocations: 70.86 kB / 0.5485 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/0.3925, allocations: 19.34 kB / 0.5485 GB, free: 15.14 MB / 378.7 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.0005091/0.393, allocations: 292.4 kB / 0.5488 GB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.3932, allocations: 85.88 kB / 0.5489 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001897/0.3934, allocations: 104.1 kB / 0.549 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.3934, allocations: 5 kB / 0.549 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.3934, allocations: 2.891 kB / 0.549 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.085e-05/0.3934, allocations: 3.312 kB / 0.549 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/0.3947, allocations: 0.731 MB / 0.5497 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.3948, allocations: 1.516 kB / 0.5497 GB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.3954, allocations: 122.2 kB / 0.5498 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.3954, allocations: 3.781 kB / 0.5498 GB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.3954, allocations: 20.44 kB / 0.5499 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.3954, allocations: 6.812 kB / 0.5499 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3954, allocations: 1.312 kB / 0.5499 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00188/0.3973, allocations: 1.273 MB / 0.5511 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.3976, allocations: 215.7 kB / 0.5513 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.092e-05/0.3976, allocations: 17.02 kB / 0.5513 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/0.3981, allocations: 56.91 kB / 0.5514 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.3982, allocations: 36.2 kB / 0.5514 GB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.3982, allocations: 19.12 kB / 0.5514 GB, free: 13.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005527/0.3988, allocations: 480 kB / 0.5519 GB, free: 13.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3988, allocations: 0.9062 kB / 0.5519 GB, free: 13.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00107/0.3999, allocations: 273.2 kB / 0.5522 GB, free: 13.14 MB / 378.7 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.0001325/0.4, allocations: 112.1 kB / 0.5523 GB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003944/0.404, allocations: 2.017 MB / 0.5542 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.404, allocations: 1.312 kB / 0.5542 GB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005954/0.4046, allocations: 305.8 kB / 0.5545 GB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.406, allocations: 216.4 kB / 0.5547 GB, free: 11.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/0.4086, allocations: 1.784 MB / 0.5565 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005067/0.4091, allocations: 0.9836 MB / 0.5574 GB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001867/0.4093, allocations: 51.64 kB / 0.5575 GB, free: 10.05 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4093, allocations: 0 / 0.5575 GB, free: 10.05 MB / 378.7 MB Notification: Performance of Templates: time 0.01995/0.4293, allocations: 16.98 MB / 0.5741 GB, free: 12.24 MB / 394.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches