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.0009531/0.0009531, allocations: 200.2 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007108/0.0007108, allocations: 97.73 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1839/0.1839, allocations: 44.84 MB / 392 MB, free: 9.336 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.000234, allocations: 8 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09076, allocations: 62.95 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.1795/0.2703, allocations: 3.657 MB / 0.5189 GB, free: 9.797 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002356/0.2727, allocations: 1.49 MB / 0.5203 GB, free: 9.57 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003377/0.273, allocations: 37.03 kB / 0.5204 GB, free: 9.559 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002432/0.2733, allocations: 112.8 kB / 0.5205 GB, free: 9.492 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.2736, allocations: 118.4 kB / 0.5206 GB, free: 9.426 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009126/0.2745, allocations: 448.7 kB / 0.521 GB, free: 9.367 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007642/0.2753, allocations: 0.8724 MB / 0.5219 GB, free: 8.93 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004217/0.2757, allocations: 310.9 kB / 0.5222 GB, free: 8.809 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.2759, allocations: 250.4 kB / 0.5224 GB, free: 8.688 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.2762, allocations: 286.4 kB / 0.5227 GB, free: 8.531 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.003e-05/0.2763, allocations: 21.84 kB / 0.5227 GB, free: 8.531 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.416e-05/0.2763, allocations: 20.62 kB / 0.5227 GB, free: 8.531 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.2764, allocations: 113.9 kB / 0.5228 GB, free: 8.469 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.571e-05/0.2765, allocations: 162.6 kB / 0.523 GB, free: 8.344 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006805/0.2772, allocations: 0.7031 MB / 0.5237 GB, free: 8.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2772, allocations: 0 / 0.5237 GB, free: 8.188 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2772, allocations: 1.594 kB / 0.5237 GB, free: 8.188 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.2773, allocations: 0 / 0.5237 GB, free: 8.188 MB / 346.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.001562/0.2788, allocations: 1.142 MB / 0.5248 GB, free: 7.426 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.2789, allocations: 9.703 kB / 0.5248 GB, free: 7.426 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001385/0.279, allocations: 115.9 kB / 0.5249 GB, free: 7.367 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006731/0.2797, allocations: 0.591 MB / 0.5255 GB, free: 6.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.2797, allocations: 47.62 kB / 0.5255 GB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.635e-05/0.2798, allocations: 67.28 kB / 0.5256 GB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.281, allocations: 0.7566 MB / 0.5263 GB, free: 6.516 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.281, allocations: 3.938 kB / 0.5263 GB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.359e-05/0.2811, allocations: 27.44 kB / 0.5264 GB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.2811, allocations: 15.19 kB / 0.5264 GB, free: 6.492 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.2823, allocations: 0.5907 MB / 0.527 GB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002815/0.2851, allocations: 2.739 MB / 0.5296 GB, free: 4.426 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.2864, allocations: 0.7242 MB / 0.5303 GB, free: 4.113 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.2869, allocations: 309.5 kB / 0.5306 GB, free: 3.984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.389e-05/0.287, allocations: 10.62 kB / 0.5306 GB, free: 3.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.287, allocations: 47.67 kB / 0.5307 GB, free: 3.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 1.933e-06/0.287, allocations: 0 / 0.5307 GB, free: 3.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.001725/0.2888, allocations: 0.8692 MB / 0.5315 GB, free: 3.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.2888, allocations: 243.3 kB / 0.5318 GB, free: 3.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007191/0.2896, allocations: 0.6889 MB / 0.5324 GB, free: 3.039 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.762e-05/0.2896, allocations: 35.92 kB / 0.5325 GB, free: 3 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/0.2898, allocations: 435.2 kB / 0.5329 GB, free: 2.656 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.29, allocations: 184.1 kB / 0.5331 GB, free: 2.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.29, allocations: 11.06 kB / 0.5331 GB, free: 2.508 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.383e-05/0.29, allocations: 330.4 kB / 0.5334 GB, free: 2.191 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004948/0.2905, allocations: 240.1 kB / 0.5336 GB, free: 2.117 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005582/0.2911, allocations: 393.5 kB / 0.534 GB, free: 1.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005451/0.2917, allocations: 277.8 kB / 0.5343 GB, free: 1.773 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2917, allocations: 1.562 kB / 0.5343 GB, free: 1.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00259/0.2943, allocations: 1.149 MB / 0.5354 GB, free: 1.383 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.066e-05/0.2943, allocations: 189 kB / 0.5356 GB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2944, allocations: 4.031 kB / 0.5356 GB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001211/0.2956, allocations: 364.1 kB / 0.5359 GB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005315/0.2961, allocations: 130.1 kB / 0.536 GB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008106/0.3042, allocations: 7.055 MB / 0.5429 GB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005911/0.3048, allocations: 97.2 kB / 0.543 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/0.3049, allocations: 24 kB / 0.5431 GB, free: 11.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.216e-06/0.3049, allocations: 3.344 kB / 0.5431 GB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001487/0.3064, allocations: 0.6631 MB / 0.5437 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.3064, allocations: 4.156 kB / 0.5437 GB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005025/0.3069, allocations: 153.3 kB / 0.5439 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007225/0.3077, allocations: 177.9 kB / 0.544 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/0.3109, allocations: 3.268 MB / 0.5472 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005024/0.3114, allocations: 73.28 kB / 0.5473 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.3114, allocations: 23.38 kB / 0.5473 GB, free: 7.961 MB / 362.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.0004139/0.3118, allocations: 291 kB / 0.5476 GB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.312, allocations: 92.64 kB / 0.5477 GB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001457/0.3122, allocations: 95.47 kB / 0.5478 GB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.433e-06/0.3122, allocations: 14.05 kB / 0.5478 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.3122, allocations: 1.125 kB / 0.5478 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3122, allocations: 1.219 kB / 0.5478 GB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009857/0.3132, allocations: 0.7355 MB / 0.5485 GB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3132, allocations: 1.062 kB / 0.5485 GB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005547/0.3138, allocations: 120.3 kB / 0.5486 GB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.3138, allocations: 3.25 kB / 0.5486 GB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-05/0.3138, allocations: 20.36 kB / 0.5486 GB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.3138, allocations: 3.031 kB / 0.5486 GB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.3139, allocations: 1.156 kB / 0.5486 GB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001859/0.3157, allocations: 1.274 MB / 0.5499 GB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.316, allocations: 217.3 kB / 0.5501 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.786e-05/0.316, allocations: 12.72 kB / 0.5501 GB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004914/0.3165, allocations: 58.38 kB / 0.5502 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.409e-05/0.3166, allocations: 35.45 kB / 0.5502 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.3167, allocations: 13.94 kB / 0.5502 GB, free: 5.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005519/0.3172, allocations: 478.2 kB / 0.5507 GB, free: 5.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3172, allocations: 1.5 kB / 0.5507 GB, free: 5.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000956/0.3182, allocations: 271.8 kB / 0.5509 GB, free: 5.59 MB / 362.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.0001319/0.3183, allocations: 118.2 kB / 0.551 GB, free: 5.477 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.3222, allocations: 2.017 MB / 0.553 GB, free: 4.242 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3222, allocations: 0 / 0.553 GB, free: 4.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005642/0.3228, allocations: 309.7 kB / 0.5533 GB, free: 4.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.324, allocations: 221.4 kB / 0.5535 GB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.3266, allocations: 1.792 MB / 0.5553 GB, free: 2.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000485/0.3271, allocations: 0.9855 MB / 0.5562 GB, free: 1.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.3273, allocations: 47.44 kB / 0.5563 GB, free: 1.723 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3273, allocations: 0 / 0.5563 GB, free: 1.723 MB / 362.7 MB Notification: Performance of Templates: time 0.01852/0.3458, allocations: 17 MB / 0.5729 GB, free: 0.7461 MB / 378.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