Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001171/0.001171, allocations: 115.1 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001303/0.001303, allocations: 206.7 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 75.86 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2927, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.00549/0.2982, allocations: 4.026 MB / 0.5356 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002632/0.3009, allocations: 1.281 MB / 0.5369 GB, free: 9.383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005554/0.3015, allocations: 23.25 kB / 0.5369 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003618/0.3019, allocations: 113.4 kB / 0.537 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006855/0.3025, allocations: 178.3 kB / 0.5372 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000861/0.3034, allocations: 398.7 kB / 0.5375 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.3045, allocations: 0.8426 MB / 0.5384 GB, free: 8.281 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004762/0.305, allocations: 289 kB / 0.5386 GB, free: 8.105 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005387/0.3055, allocations: 335.6 kB / 0.539 GB, free: 7.891 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004108/0.306, allocations: 317.9 kB / 0.5393 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.3061, allocations: 65.84 kB / 0.5393 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001738/0.3063, allocations: 72.73 kB / 0.5394 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001356/0.3064, allocations: 159.5 kB / 0.5395 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003262/0.3067, allocations: 350.7 kB / 0.5399 GB, free: 7.238 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009463/0.3077, allocations: 0.8078 MB / 0.5407 GB, free: 6.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.3077, allocations: 1.906 kB / 0.5407 GB, free: 6.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3077, allocations: 0 / 0.5407 GB, free: 6.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.444e-05/0.3078, allocations: 0 / 0.5407 GB, free: 6.613 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: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.002206/0.31, allocations: 1.083 MB / 0.5417 GB, free: 5.742 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.31, allocations: 13.72 kB / 0.5417 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003213/0.3103, allocations: 101.6 kB / 0.5418 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000906/0.3113, allocations: 0.5475 MB / 0.5424 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.117e-05/0.3113, allocations: 40.62 kB / 0.5424 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.246e-05/0.3114, allocations: 65.83 kB / 0.5425 GB, free: 5.172 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.3124, allocations: 0.6202 MB / 0.5431 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.444e-05/0.3125, allocations: 2.281 kB / 0.5431 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.936e-05/0.3125, allocations: 21.5 kB / 0.5431 GB, free: 4.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.3125, allocations: 17.62 kB / 0.5431 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008355/0.3134, allocations: 393.5 kB / 0.5435 GB, free: 4.508 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003948/0.3173, allocations: 2.981 MB / 0.5464 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009467/0.3183, allocations: 441.3 kB / 0.5468 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003419/0.3187, allocations: 175.9 kB / 0.547 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.737e-05/0.3187, allocations: 3.281 kB / 0.547 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.3187, allocations: 37.66 kB / 0.547 GB, free: 1.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.864e-06/0.3188, allocations: 0 / 0.547 GB, free: 1.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001199/0.32, allocations: 0.5465 MB / 0.5476 GB, free: 1.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.32, allocations: 136.5 kB / 0.5477 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005683/0.3206, allocations: 0.5549 MB / 0.5482 GB, free: 384 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.767e-05/0.3206, allocations: 37.7 kB / 0.5483 GB, free: 340 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.3209, allocations: 388.8 kB / 0.5486 GB, free: 15.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.321, allocations: 154.7 kB / 0.5488 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.3212, allocations: 122.2 kB / 0.5489 GB, free: 15.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.3213, allocations: 378.8 kB / 0.5493 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000377/0.3217, allocations: 183.4 kB / 0.5494 GB, free: 15.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005323/0.3223, allocations: 405.9 kB / 0.5498 GB, free: 14.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008606/0.3231, allocations: 0.5675 MB / 0.5504 GB, free: 13.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3231, allocations: 4 kB / 0.5504 GB, free: 13.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001114/0.3243, allocations: 0.6568 MB / 0.551 GB, free: 13.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3243, allocations: 8 kB / 0.551 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.3243, allocations: 4 kB / 0.551 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.3243, allocations: 15.75 kB / 0.5511 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.3249, allocations: 143.8 kB / 0.5512 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.3249, allocations: 11.98 kB / 0.5512 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/0.3253, allocations: 75.77 kB / 0.5513 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.3253, allocations: 24 kB / 0.5513 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004708/0.3258, allocations: 309.3 kB / 0.5516 GB, free: 12.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00048/0.3263, allocations: 386 kB / 0.552 GB, free: 12.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007889/0.3271, allocations: 0.5636 MB / 0.5525 GB, free: 11.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.358e-06/0.3271, allocations: 4 kB / 0.5525 GB, free: 11.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001035/0.3281, allocations: 0.6261 MB / 0.5531 GB, free: 10.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.3282, allocations: 8 kB / 0.5531 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3282, allocations: 8 kB / 0.5531 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.3282, allocations: 8 kB / 0.5531 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004845/0.3287, allocations: 143.7 kB / 0.5533 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.767e-05/0.3287, allocations: 11.98 kB / 0.5533 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.3291, allocations: 63.8 kB / 0.5534 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.3291, allocations: 35.94 kB / 0.5534 GB, free: 10.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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 prepare postOptimizeDAE: time 0.0001481/0.3293, allocations: 228.5 kB / 0.5536 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3294, allocations: 67.58 kB / 0.5537 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/0.3295, allocations: 74.11 kB / 0.5537 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3295, allocations: 3.984 kB / 0.5537 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3295, allocations: 0 / 0.5537 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.3297, allocations: 168.6 kB / 0.5539 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.066e-05/0.3298, allocations: 8 kB / 0.5539 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003665/0.3302, allocations: 35.97 kB / 0.554 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/0.3303, allocations: 31.95 kB / 0.554 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001683/0.332, allocations: 0.6843 MB / 0.5547 GB, free: 9.336 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001299/0.3333, allocations: 0.8973 MB / 0.5555 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003486/0.3336, allocations: 171.9 kB / 0.5557 GB, free: 8.254 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003849/0.334, allocations: 379.1 kB / 0.5561 GB, free: 7.887 MB / 414.1 MB Notification: Performance of Backend: time 4.81e-07/0.334, allocations: 0 / 0.5561 GB, free: 7.887 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001471/0.3355, allocations: 0.6774 MB / 0.5567 GB, free: 7.207 MB / 414.1 MB Notification: Performance of SimCode: time 0.002291/0.3378, allocations: 1.948 MB / 0.5586 GB, free: 5.215 MB / 414.1 MB Notification: Performance of Templates: time 0.01564/0.3535, allocations: 9.417 MB / 0.5678 GB, free: 11.85 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches