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.0013/0.0013, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00146/0.00146, allocations: 208.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1992/0.1992, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 75.88 kB / 482 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2659, allocations: 62.44 MB / 0.5317 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004883/0.2708, allocations: 4.022 MB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002121/0.273, allocations: 1.273 MB / 0.5368 GB, free: 9.363 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003127/0.2733, allocations: 23.41 kB / 0.5369 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.2736, allocations: 114.6 kB / 0.537 GB, free: 9.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004508/0.274, allocations: 171.2 kB / 0.5371 GB, free: 9.102 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000714/0.2748, allocations: 406.1 kB / 0.5375 GB, free: 8.781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000821/0.2756, allocations: 0.8396 MB / 0.5383 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.276, allocations: 296.5 kB / 0.5386 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004162/0.2765, allocations: 331.8 kB / 0.5389 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.2768, allocations: 325.8 kB / 0.5392 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.829e-05/0.2769, allocations: 65.22 kB / 0.5393 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.277, allocations: 68.66 kB / 0.5394 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.2772, allocations: 156 kB / 0.5395 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002608/0.2774, allocations: 346.8 kB / 0.5399 GB, free: 7.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007488/0.2782, allocations: 0.8028 MB / 0.5406 GB, free: 6.598 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.2782, allocations: 0 / 0.5406 GB, free: 6.598 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2782, allocations: 4 kB / 0.5406 GB, free: 6.594 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.2782, allocations: 0 / 0.5406 GB, free: 6.594 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.001707/0.2799, allocations: 1.057 MB / 0.5417 GB, free: 5.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.28, allocations: 11.25 kB / 0.5417 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.2803, allocations: 97.23 kB / 0.5418 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007473/0.281, allocations: 0.5428 MB / 0.5423 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.286e-05/0.2811, allocations: 43.94 kB / 0.5423 GB, free: 5.215 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.543e-05/0.2812, allocations: 70.45 kB / 0.5424 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.2822, allocations: 0.6124 MB / 0.543 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.2822, allocations: 2.125 kB / 0.543 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.072e-05/0.2823, allocations: 26.42 kB / 0.543 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.2823, allocations: 12.97 kB / 0.5431 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007727/0.2831, allocations: 388.6 kB / 0.5434 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.2868, allocations: 2.985 MB / 0.5463 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.2878, allocations: 443.7 kB / 0.5468 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003551/0.2882, allocations: 171.1 kB / 0.5469 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.2882, allocations: 8.062 kB / 0.5469 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.2883, allocations: 37.28 kB / 0.547 GB, free: 1.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.003e-06/0.2883, allocations: 0 / 0.547 GB, free: 1.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001239/0.2895, allocations: 0.5475 MB / 0.5475 GB, free: 1.125 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.479e-05/0.2896, allocations: 132.5 kB / 0.5476 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005584/0.2902, allocations: 0.5509 MB / 0.5482 GB, free: 412 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.729e-05/0.2902, allocations: 33.7 kB / 0.5482 GB, free: 372 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.2905, allocations: 376.1 kB / 0.5486 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.2906, allocations: 165.7 kB / 0.5487 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.2908, allocations: 114.2 kB / 0.5488 GB, free: 15.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.2909, allocations: 378.8 kB / 0.5492 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004166/0.2913, allocations: 183.4 kB / 0.5494 GB, free: 15.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005403/0.2919, allocations: 401.9 kB / 0.5497 GB, free: 14.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009245/0.2928, allocations: 0.5751 MB / 0.5503 GB, free: 13.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-06/0.2928, allocations: 7.938 kB / 0.5503 GB, free: 13.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001192/0.294, allocations: 0.6527 MB / 0.551 GB, free: 13.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2941, allocations: 10.19 kB / 0.551 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.2941, allocations: 8.031 kB / 0.551 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.2941, allocations: 15.94 kB / 0.551 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.2946, allocations: 135.8 kB / 0.5511 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.453e-05/0.2947, allocations: 15.98 kB / 0.5511 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.2951, allocations: 67.42 kB / 0.5512 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.591e-05/0.2951, allocations: 28 kB / 0.5512 GB, free: 13.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005101/0.2957, allocations: 309.3 kB / 0.5515 GB, free: 12.74 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004851/0.2962, allocations: 385.9 kB / 0.5519 GB, free: 12.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008257/0.297, allocations: 0.5598 MB / 0.5524 GB, free: 11.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.17e-06/0.297, allocations: 4 kB / 0.5524 GB, free: 11.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001076/0.2981, allocations: 0.6254 MB / 0.553 GB, free: 10.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.2981, allocations: 11.98 kB / 0.5531 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2981, allocations: 4.031 kB / 0.5531 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.2981, allocations: 16 kB / 0.5531 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.2987, allocations: 139.7 kB / 0.5532 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.2987, allocations: 8 kB / 0.5532 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.2991, allocations: 59.52 kB / 0.5533 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.2991, allocations: 36 kB / 0.5533 GB, free: 10.71 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.0001541/0.2993, allocations: 224.5 kB / 0.5535 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.2994, allocations: 63.25 kB / 0.5536 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.2995, allocations: 82.09 kB / 0.5537 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2996, allocations: 4 kB / 0.5537 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.2996, allocations: 3.984 kB / 0.5537 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.2996, allocations: 0 / 0.5537 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007184/0.3003, allocations: 0.5712 MB / 0.5542 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3003, allocations: 0 / 0.5542 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004913/0.3008, allocations: 91.83 kB / 0.5543 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3008, allocations: 4 kB / 0.5543 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.205e-05/0.3009, allocations: 15.92 kB / 0.5543 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.3009, allocations: 0 / 0.5543 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3009, allocations: 4 kB / 0.5543 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.3021, allocations: 0.7739 MB / 0.5551 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.3023, allocations: 168.4 kB / 0.5553 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.291e-05/0.3024, allocations: 11.94 kB / 0.5553 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/0.3027, allocations: 23.98 kB / 0.5553 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.733e-05/0.3028, allocations: 31.95 kB / 0.5553 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.3028, allocations: 12 kB / 0.5553 GB, free: 8.543 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003825/0.3032, allocations: 379.1 kB / 0.5557 GB, free: 8.176 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3032, allocations: 0 / 0.5557 GB, free: 8.176 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007566/0.304, allocations: 243.1 kB / 0.5559 GB, free: 7.938 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x) * 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 (39): * Single equations (assignments): 39 * 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.0001251/0.3041, allocations: 115.5 kB / 0.556 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.3055, allocations: 0.7285 MB / 0.5567 GB, free: 7.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3055, allocations: 384 / 0.5567 GB, free: 7.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003819/0.3059, allocations: 195.8 kB / 0.5569 GB, free: 6.898 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009631/0.3069, allocations: 172 kB / 0.5571 GB, free: 6.738 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002206/0.3091, allocations: 1.436 MB / 0.5585 GB, free: 5.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.3095, allocations: 0.9065 MB / 0.5594 GB, free: 4.336 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.3097, allocations: 47.44 kB / 0.5594 GB, free: 4.289 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3097, allocations: 0 / 0.5594 GB, free: 4.289 MB / 414.1 MB Notification: Performance of Templates: time 0.01042/0.3201, allocations: 7.754 MB / 0.567 GB, free: 12.56 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