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: 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_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_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001225/0.001225, allocations: 116.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2588/0.2588, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.001761, allocations: 79.88 kB / 481.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4892/0.4909, allocations: 62.43 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006104/0.4971, allocations: 4.363 MB / 0.5352 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003709/0.5009, allocations: 1.582 MB / 0.5368 GB, free: 8.793 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007807/0.5017, allocations: 31.28 kB / 0.5368 GB, free: 8.785 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004119/0.5021, allocations: 158.3 kB / 0.537 GB, free: 8.637 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004311/0.5026, allocations: 158.4 kB / 0.5371 GB, free: 8.496 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001316/0.5039, allocations: 0.5938 MB / 0.5377 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001156/0.5051, allocations: 1.027 MB / 0.5387 GB, free: 7.367 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006222/0.5057, allocations: 437.2 kB / 0.5391 GB, free: 7.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004267/0.5061, allocations: 362.9 kB / 0.5395 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003745/0.5065, allocations: 388.6 kB / 0.5398 GB, free: 6.547 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001438/0.5067, allocations: 90 kB / 0.5399 GB, free: 6.543 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.5068, allocations: 87.12 kB / 0.54 GB, free: 6.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001626/0.507, allocations: 196.4 kB / 0.5402 GB, free: 6.375 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003369/0.5073, allocations: 439.7 kB / 0.5406 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.5084, allocations: 1.025 MB / 0.5416 GB, free: 5.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.5084, allocations: 3.938 kB / 0.5416 GB, free: 5.211 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.5084, allocations: 0 / 0.5416 GB, free: 5.211 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.5084, allocations: 1.531 kB / 0.5416 GB, free: 5.211 MB / 398.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.002038/0.5104, allocations: 1.335 MB / 0.5429 GB, free: 4.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.5105, allocations: 9.5 kB / 0.5429 GB, free: 4.152 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.5107, allocations: 120.7 kB / 0.543 GB, free: 4.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00095/0.5117, allocations: 0.6576 MB / 0.5437 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.291e-05/0.5117, allocations: 47.94 kB / 0.5437 GB, free: 3.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.5118, allocations: 62.44 kB / 0.5438 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.5132, allocations: 0.7725 MB / 0.5445 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.5132, allocations: 4.906 kB / 0.5446 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/0.5133, allocations: 26.97 kB / 0.5446 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.5133, allocations: 15.34 kB / 0.5446 GB, free: 2.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.5145, allocations: 0.5386 MB / 0.5451 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.518, allocations: 2.718 MB / 0.5478 GB, free: 208 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00133/0.5194, allocations: 0.6709 MB / 0.5484 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005215/0.5199, allocations: 287.3 kB / 0.5487 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.453e-05/0.52, allocations: 7.984 kB / 0.5487 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.52, allocations: 46.5 kB / 0.5488 GB, free: 15.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.715e-06/0.52, allocations: 0 / 0.5488 GB, free: 15.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.001795/0.5218, allocations: 0.8005 MB / 0.5495 GB, free: 14.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.522, allocations: 350.1 kB / 0.5499 GB, free: 13.92 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008493/0.5229, allocations: 0.7006 MB / 0.5506 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.5229, allocations: 37.7 kB / 0.5506 GB, free: 13.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003271/0.5233, allocations: 437 kB / 0.551 GB, free: 12.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.5234, allocations: 194.3 kB / 0.5512 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.5236, allocations: 106.2 kB / 0.5513 GB, free: 12.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.5238, allocations: 337.8 kB / 0.5516 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004944/0.5243, allocations: 231 kB / 0.5518 GB, free: 11.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006118/0.5249, allocations: 391.5 kB / 0.5522 GB, free: 11.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001021/0.5259, allocations: 0.5496 MB / 0.5527 GB, free: 10.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5259, allocations: 4 kB / 0.5528 GB, free: 10.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002533/0.5285, allocations: 1.038 MB / 0.5538 GB, free: 9.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.5285, allocations: 10.81 kB / 0.5538 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.5285, allocations: 4 kB / 0.5538 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.5297, allocations: 331.3 kB / 0.5541 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/0.5302, allocations: 123.9 kB / 0.5542 GB, free: 9.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008938/0.5392, allocations: 7.28 MB / 0.5613 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007335/0.5399, allocations: 87.61 kB / 0.5614 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.687e-05/0.54, allocations: 16 kB / 0.5614 GB, free: 1.355 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006653/0.5407, allocations: 349.2 kB / 0.5618 GB, free: 1.008 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005881/0.5412, allocations: 355.5 kB / 0.5621 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008058/0.5421, allocations: 0.49 MB / 0.5626 GB, free: 80 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.455e-06/0.5421, allocations: 0 / 0.5626 GB, free: 80 kB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001705/0.5438, allocations: 0.7549 MB / 0.5633 GB, free: 15.31 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.5438, allocations: 8 kB / 0.5633 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.5438, allocations: 3.984 kB / 0.5633 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004846/0.5443, allocations: 154 kB / 0.5635 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006668/0.545, allocations: 167.8 kB / 0.5636 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003464/0.5485, allocations: 3.431 MB / 0.567 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/0.5491, allocations: 67.7 kB / 0.567 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.5492, allocations: 20 kB / 0.5671 GB, free: 11.19 MB / 430.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.0002748/0.5494, allocations: 220 kB / 0.5673 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001877/0.5496, allocations: 99.33 kB / 0.5674 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002374/0.5499, allocations: 103.2 kB / 0.5675 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.5499, allocations: 4 kB / 0.5675 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.5499, allocations: 4 kB / 0.5675 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5499, allocations: 7.969 kB / 0.5675 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.551, allocations: 0.7312 MB / 0.5682 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.551, allocations: 0 / 0.5682 GB, free: 9.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005378/0.5516, allocations: 107.9 kB / 0.5683 GB, free: 9.859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.5516, allocations: 7.922 kB / 0.5683 GB, free: 9.852 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.5516, allocations: 12 kB / 0.5683 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.5517, allocations: 7.938 kB / 0.5683 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.5517, allocations: 0 / 0.5683 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.5536, allocations: 1.21 MB / 0.5695 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.5538, allocations: 224.2 kB / 0.5697 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.35e-05/0.5539, allocations: 12 kB / 0.5697 GB, free: 8.359 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004763/0.5544, allocations: 40.03 kB / 0.5698 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.928e-05/0.5545, allocations: 35.95 kB / 0.5698 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.5545, allocations: 19.98 kB / 0.5698 GB, free: 8.266 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006366/0.5552, allocations: 479 kB / 0.5703 GB, free: 7.805 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5552, allocations: 0 / 0.5703 GB, free: 7.805 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001085/0.5563, allocations: 287.3 kB / 0.5706 GB, free: 7.523 MB / 430.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.0002274/0.5565, allocations: 115.1 kB / 0.5707 GB, free: 7.402 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004243/0.5607, allocations: 1.885 MB / 0.5725 GB, free: 5.441 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.089e-06/0.5608, allocations: 0 / 0.5725 GB, free: 5.441 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005411/0.5613, allocations: 275.3 kB / 0.5728 GB, free: 5.176 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.5626, allocations: 235.4 kB / 0.573 GB, free: 4.957 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.5653, allocations: 1.513 MB / 0.5745 GB, free: 3.406 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006006/0.566, allocations: 0.9848 MB / 0.5754 GB, free: 2.395 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005088/0.5665, allocations: 85.11 kB / 0.5755 GB, free: 2.312 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.5667, allocations: 55.44 kB / 0.5756 GB, free: 2.258 MB / 430.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5667, allocations: 0 / 0.5756 GB, free: 2.258 MB / 430.1 MB Notification: Performance of Templates: time 0.02182/0.5885, allocations: 12.3 MB / 0.5876 GB, free: 6.008 MB / 446.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches