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.001563/0.001569, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 204 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 75.88 kB / 482 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4149/0.4163, allocations: 62.44 MB / 0.5317 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006297/0.4226, allocations: 4.02 MB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002763/0.4254, allocations: 1.273 MB / 0.5368 GB, free: 9.367 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004667/0.4259, allocations: 23.81 kB / 0.5369 GB, free: 9.359 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004183/0.4263, allocations: 117.6 kB / 0.537 GB, free: 9.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005568/0.4269, allocations: 177.9 kB / 0.5371 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008506/0.4278, allocations: 406.6 kB / 0.5375 GB, free: 8.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009561/0.4288, allocations: 0.8399 MB / 0.5383 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005306/0.4293, allocations: 299.6 kB / 0.5386 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005385/0.4299, allocations: 327.9 kB / 0.5389 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.4303, allocations: 326 kB / 0.5393 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.4304, allocations: 65 kB / 0.5393 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.4305, allocations: 69.34 kB / 0.5394 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.4307, allocations: 160.3 kB / 0.5395 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003597/0.431, allocations: 349.7 kB / 0.5399 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000923/0.432, allocations: 0.795 MB / 0.5406 GB, free: 6.598 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.432, allocations: 4 kB / 0.5406 GB, free: 6.594 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.432, allocations: 3.938 kB / 0.5407 GB, free: 6.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.432, allocations: 1 kB / 0.5407 GB, free: 6.59 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.001869/0.4339, allocations: 1.053 MB / 0.5417 GB, free: 5.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.4339, allocations: 10.16 kB / 0.5417 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002863/0.4342, allocations: 97.73 kB / 0.5418 GB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000875/0.4351, allocations: 0.542 MB / 0.5423 GB, free: 5.238 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.898e-05/0.4352, allocations: 41 kB / 0.5424 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.4353, allocations: 74.92 kB / 0.5424 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.4364, allocations: 0.6124 MB / 0.543 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.4364, allocations: 1 kB / 0.543 GB, free: 4.734 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.768e-05/0.4365, allocations: 22.31 kB / 0.543 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.4365, allocations: 17.41 kB / 0.5431 GB, free: 4.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008007/0.4373, allocations: 388.9 kB / 0.5434 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004269/0.4416, allocations: 2.984 MB / 0.5463 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009702/0.4426, allocations: 442.5 kB / 0.5468 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.443, allocations: 178.6 kB / 0.5469 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-05/0.443, allocations: 5 kB / 0.5469 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.4431, allocations: 41.34 kB / 0.547 GB, free: 1.566 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.816e-06/0.4431, allocations: 0 / 0.547 GB, free: 1.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001342/0.4444, allocations: 0.5474 MB / 0.5475 GB, free: 1.102 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.591e-05/0.4445, allocations: 136.5 kB / 0.5476 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005938/0.4451, allocations: 0.5509 MB / 0.5482 GB, free: 384 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.4452, allocations: 33.7 kB / 0.5482 GB, free: 344 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002979/0.4455, allocations: 380.1 kB / 0.5486 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.4456, allocations: 153.8 kB / 0.5487 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.4458, allocations: 118.2 kB / 0.5488 GB, free: 15.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.4459, allocations: 378.8 kB / 0.5492 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.4463, allocations: 183.4 kB / 0.5494 GB, free: 15.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005671/0.4469, allocations: 397.8 kB / 0.5498 GB, free: 14.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009021/0.4478, allocations: 0.5792 MB / 0.5503 GB, free: 13.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4478, allocations: 3.938 kB / 0.5503 GB, free: 13.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00113/0.449, allocations: 0.6487 MB / 0.551 GB, free: 13.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.449, allocations: 8.125 kB / 0.551 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.449, allocations: 16 kB / 0.551 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.763e-05/0.4491, allocations: 15.94 kB / 0.551 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005001/0.4496, allocations: 135.8 kB / 0.5511 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.89e-05/0.4496, allocations: 19.92 kB / 0.5511 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003643/0.45, allocations: 63.42 kB / 0.5512 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.45, allocations: 32 kB / 0.5512 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004888/0.4505, allocations: 305.4 kB / 0.5515 GB, free: 12.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000482/0.451, allocations: 393.9 kB / 0.5519 GB, free: 12.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008119/0.4518, allocations: 0.552 MB / 0.5524 GB, free: 11.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.498e-06/0.4519, allocations: 4 kB / 0.5524 GB, free: 11.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001027/0.4529, allocations: 0.6176 MB / 0.553 GB, free: 10.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.4529, allocations: 11.98 kB / 0.5531 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4529, allocations: 12.09 kB / 0.5531 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.4529, allocations: 12 kB / 0.5531 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004757/0.4534, allocations: 143.7 kB / 0.5532 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.21e-05/0.4534, allocations: 11.94 kB / 0.5532 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003403/0.4538, allocations: 59.52 kB / 0.5533 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.728e-05/0.4538, allocations: 24 kB / 0.5533 GB, free: 10.69 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.0001782/0.454, allocations: 230.7 kB / 0.5535 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.4541, allocations: 67.16 kB / 0.5536 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001438/0.4543, allocations: 78.09 kB / 0.5537 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4543, allocations: 8 kB / 0.5537 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4543, allocations: 0 / 0.5537 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.4543, allocations: 0 / 0.5537 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007897/0.4551, allocations: 0.5674 MB / 0.5542 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4551, allocations: 0 / 0.5542 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004588/0.4556, allocations: 79.89 kB / 0.5543 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.4556, allocations: 11.94 kB / 0.5543 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.4556, allocations: 19.92 kB / 0.5543 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4557, allocations: 0 / 0.5543 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4557, allocations: 4.172 kB / 0.5543 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.4569, allocations: 0.774 MB / 0.5551 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.4571, allocations: 164.4 kB / 0.5553 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.793e-05/0.4572, allocations: 15.94 kB / 0.5553 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003143/0.4575, allocations: 23.98 kB / 0.5553 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.1e-05/0.4576, allocations: 31.95 kB / 0.5553 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.4576, allocations: 12 kB / 0.5553 GB, free: 8.527 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004088/0.458, allocations: 379.1 kB / 0.5557 GB, free: 8.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.458, allocations: 0 / 0.5557 GB, free: 8.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000763/0.4588, allocations: 243.1 kB / 0.5559 GB, free: 7.922 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.0001423/0.4589, allocations: 115.5 kB / 0.556 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.4603, allocations: 0.7325 MB / 0.5568 GB, free: 7.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.4603, allocations: 4.062 kB / 0.5568 GB, free: 7.066 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003567/0.4607, allocations: 191.8 kB / 0.5569 GB, free: 6.879 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008891/0.4616, allocations: 188.7 kB / 0.5571 GB, free: 6.695 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.4639, allocations: 1.421 MB / 0.5585 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.4644, allocations: 0.9104 MB / 0.5594 GB, free: 4.301 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.4645, allocations: 43.44 kB / 0.5594 GB, free: 4.258 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4646, allocations: 0 / 0.5594 GB, free: 4.258 MB / 414.1 MB Notification: Performance of Templates: time 0.01064/0.4752, allocations: 7.761 MB / 0.567 GB, free: 12.52 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