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.001537/0.001537, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002076/0.002076, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 79.88 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3956, allocations: 62.44 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.006024/0.4017, allocations: 4.028 MB / 0.5349 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003126/0.4049, allocations: 1.28 MB / 0.5362 GB, free: 9.355 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005239/0.4054, allocations: 28.16 kB / 0.5362 GB, free: 9.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003344/0.4058, allocations: 117.5 kB / 0.5363 GB, free: 9.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005638/0.4064, allocations: 170.5 kB / 0.5365 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008417/0.4072, allocations: 406.1 kB / 0.5369 GB, free: 8.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009689/0.4082, allocations: 0.835 MB / 0.5377 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004973/0.4087, allocations: 296.8 kB / 0.538 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005283/0.4092, allocations: 338.9 kB / 0.5383 GB, free: 7.855 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003632/0.4096, allocations: 322.5 kB / 0.5386 GB, free: 7.609 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.4097, allocations: 65.19 kB / 0.5387 GB, free: 7.609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.4099, allocations: 69.41 kB / 0.5387 GB, free: 7.609 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.41, allocations: 156.3 kB / 0.5389 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002621/0.4103, allocations: 346 kB / 0.5392 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000852/0.4111, allocations: 0.8027 MB / 0.54 GB, free: 6.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.4112, allocations: 4 kB / 0.54 GB, free: 6.586 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4112, allocations: 0 / 0.54 GB, free: 6.586 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.226e-05/0.4112, allocations: 0 / 0.54 GB, free: 6.586 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.001815/0.413, allocations: 1.058 MB / 0.541 GB, free: 5.742 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.4131, allocations: 10.12 kB / 0.541 GB, free: 5.742 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.4133, allocations: 94 kB / 0.5411 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008708/0.4142, allocations: 0.5506 MB / 0.5417 GB, free: 5.227 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.4143, allocations: 39.91 kB / 0.5417 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.4144, allocations: 70.47 kB / 0.5418 GB, free: 5.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.4154, allocations: 0.6158 MB / 0.5424 GB, free: 4.723 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.4155, allocations: 1.875 kB / 0.5424 GB, free: 4.723 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.166e-05/0.4155, allocations: 22 kB / 0.5424 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.4156, allocations: 14.12 kB / 0.5424 GB, free: 4.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000826/0.4164, allocations: 384.6 kB / 0.5428 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00391/0.4203, allocations: 2.98 MB / 0.5457 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009832/0.4213, allocations: 447.7 kB / 0.5461 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003448/0.4217, allocations: 166.9 kB / 0.5463 GB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.768e-05/0.4217, allocations: 8.344 kB / 0.5463 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.4218, allocations: 45.62 kB / 0.5463 GB, free: 1.562 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.124e-06/0.4218, allocations: 0 / 0.5463 GB, free: 1.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.001241/0.423, allocations: 0.5442 MB / 0.5469 GB, free: 1.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.591e-05/0.4231, allocations: 136.5 kB / 0.547 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005867/0.4237, allocations: 0.5509 MB / 0.5475 GB, free: 396 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.4237, allocations: 33.7 kB / 0.5476 GB, free: 356 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.424, allocations: 372 kB / 0.5479 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.4241, allocations: 157.8 kB / 0.5481 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.4243, allocations: 130 kB / 0.5482 GB, free: 15.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.4245, allocations: 374.8 kB / 0.5485 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.4249, allocations: 183.4 kB / 0.5487 GB, free: 15.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/0.4254, allocations: 393.9 kB / 0.5491 GB, free: 14.65 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008718/0.4263, allocations: 0.5791 MB / 0.5497 GB, free: 13.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.4263, allocations: 4 kB / 0.5497 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001109/0.4274, allocations: 0.6487 MB / 0.5503 GB, free: 13.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.4274, allocations: 8 kB / 0.5503 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.4275, allocations: 12.06 kB / 0.5503 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.4275, allocations: 15.94 kB / 0.5503 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/0.428, allocations: 139.7 kB / 0.5505 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.428, allocations: 12 kB / 0.5505 GB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.4284, allocations: 67.42 kB / 0.5505 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.092e-05/0.4285, allocations: 31.98 kB / 0.5506 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004793/0.429, allocations: 309.4 kB / 0.5509 GB, free: 12.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004588/0.4294, allocations: 389.9 kB / 0.5512 GB, free: 12.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007594/0.4302, allocations: 0.5598 MB / 0.5518 GB, free: 11.6 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.655e-06/0.4302, allocations: 0 / 0.5518 GB, free: 11.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.000999/0.4312, allocations: 0.6259 MB / 0.5524 GB, free: 10.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4313, allocations: 8 kB / 0.5524 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.4313, allocations: 12.03 kB / 0.5524 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.4313, allocations: 12 kB / 0.5524 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004623/0.4318, allocations: 139.7 kB / 0.5526 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.4318, allocations: 12 kB / 0.5526 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003558/0.4321, allocations: 59.52 kB / 0.5526 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.4322, allocations: 27.98 kB / 0.5526 GB, free: 10.7 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.0001741/0.4324, allocations: 232.5 kB / 0.5529 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.4325, allocations: 67.16 kB / 0.5529 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001369/0.4326, allocations: 74.11 kB / 0.553 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.4326, allocations: 8 kB / 0.553 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4327, allocations: 0 / 0.553 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.4327, allocations: 3.984 kB / 0.553 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007499/0.4334, allocations: 0.5674 MB / 0.5536 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.4334, allocations: 0 / 0.5536 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004568/0.4339, allocations: 83.88 kB / 0.5537 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.4339, allocations: 11.94 kB / 0.5537 GB, free: 9.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.434, allocations: 15.94 kB / 0.5537 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.434, allocations: 0 / 0.5537 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.434, allocations: 0 / 0.5537 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.4352, allocations: 0.7778 MB / 0.5544 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001634/0.4354, allocations: 164.4 kB / 0.5546 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.674e-05/0.4354, allocations: 15.94 kB / 0.5546 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003197/0.4358, allocations: 31.91 kB / 0.5546 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.4358, allocations: 27.97 kB / 0.5547 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.4359, allocations: 15.98 kB / 0.5547 GB, free: 8.523 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003855/0.4363, allocations: 379.1 kB / 0.555 GB, free: 8.156 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4363, allocations: 0 / 0.555 GB, free: 8.156 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007565/0.437, allocations: 239.1 kB / 0.5553 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.0001415/0.4372, allocations: 115.1 kB / 0.5554 GB, free: 7.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001348/0.4385, allocations: 0.7205 MB / 0.5561 GB, free: 7.086 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.4386, allocations: 384 / 0.5561 GB, free: 7.086 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003575/0.4389, allocations: 195.8 kB / 0.5563 GB, free: 6.895 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009179/0.4398, allocations: 190.2 kB / 0.5565 GB, free: 6.727 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.442, allocations: 1.4 MB / 0.5578 GB, free: 5.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.4425, allocations: 0.9065 MB / 0.5587 GB, free: 4.363 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003035/0.4428, allocations: 80.84 kB / 0.5588 GB, free: 4.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.4429, allocations: 39.44 kB / 0.5588 GB, free: 4.242 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4429, allocations: 0 / 0.5588 GB, free: 4.242 MB / 414.1 MB Notification: Performance of Templates: time 0.01113/0.454, allocations: 6.431 MB / 0.5651 GB, free: 13.86 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches