Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 96.78 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002009/0.002009, allocations: 176.2 kB / 16.91 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.4 MB / 223.1 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5191/0.5191, allocations: 43.57 MB / 315 MB, free: 8.711 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005664/0.0005665, allocations: 20 kB / 384.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1862, allocations: 58.86 MB / 443.4 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005834/0.1922, allocations: 3.613 MB / 447.1 MB, free: 9.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003765/0.196, allocations: 1.228 MB / 448.3 MB, free: 7.828 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001204/0.1972, allocations: 23.88 kB / 448.3 MB, free: 7.805 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006272/0.1979, allocations: 83.22 kB / 448.4 MB, free: 7.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001338/0.1992, allocations: 142.9 kB / 448.5 MB, free: 7.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.2006, allocations: 355.6 kB / 448.9 MB, free: 7.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001635/0.2023, allocations: 0.7993 MB / 449.7 MB, free: 6.434 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006015/0.2029, allocations: 268.3 kB / 449.9 MB, free: 6.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005176/0.2034, allocations: 262.5 kB / 450.2 MB, free: 5.898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/0.2038, allocations: 266.3 kB / 450.5 MB, free: 5.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.743e-05/0.2039, allocations: 24 kB / 450.5 MB, free: 5.613 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.875e-05/0.2039, allocations: 24 kB / 450.5 MB, free: 5.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.204, allocations: 103.4 kB / 450.6 MB, free: 5.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002684/0.2043, allocations: 315.6 kB / 450.9 MB, free: 5.172 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007258/0.205, allocations: 0.7079 MB / 451.6 MB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2051, allocations: 0 / 451.6 MB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.2051, allocations: 0 / 451.6 MB, free: 4.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.778e-06/0.2051, allocations: 4 kB / 451.6 MB, free: 4.457 MB / 382.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.001743/0.2068, allocations: 0.9348 MB / 452.6 MB, free: 3.473 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.2069, allocations: 16.02 kB / 452.6 MB, free: 3.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.2071, allocations: 91.81 kB / 452.7 MB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007193/0.2078, allocations: 0.4994 MB / 453.2 MB, free: 2.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.284e-05/0.2079, allocations: 41.69 kB / 453.2 MB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.208, allocations: 72.22 kB / 453.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.209, allocations: 0.6156 MB / 453.9 MB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/0.2091, allocations: 3.938 kB / 453.9 MB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.2091, allocations: 24 kB / 453.9 MB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.2092, allocations: 12 kB / 453.9 MB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007849/0.2099, allocations: 402.2 kB / 454.3 MB, free: 1.609 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3047/0.5146, allocations: 3.036 MB / 457.4 MB, free: 44.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009657/0.5156, allocations: 467.3 kB / 457.8 MB, free: 44.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003518/0.516, allocations: 191.6 kB / 458 MB, free: 44.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.5161, allocations: 10.48 kB / 458 MB, free: 44.41 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.5161, allocations: 37.03 kB / 458 MB, free: 44.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 2.104e-06/0.5161, allocations: 0 / 458 MB, free: 44.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.00115/0.5173, allocations: 0.5656 MB / 458.6 MB, free: 44.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.5173, allocations: 108.8 kB / 458.7 MB, free: 44.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005286/0.5179, allocations: 0.5444 MB / 459.3 MB, free: 44.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.5179, allocations: 36.36 kB / 459.3 MB, free: 44.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.5181, allocations: 377.7 kB / 459.7 MB, free: 43.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.5182, allocations: 149.5 kB / 459.8 MB, free: 43.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.564e-05/0.5183, allocations: 71.08 kB / 459.9 MB, free: 43.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.5184, allocations: 380.6 kB / 460.2 MB, free: 43.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003488/0.5187, allocations: 184 kB / 460.4 MB, free: 43.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000421/0.5191, allocations: 405.5 kB / 460.8 MB, free: 43.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007925/0.5199, allocations: 0.5939 MB / 461.4 MB, free: 42.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.52, allocations: 2.844 kB / 461.4 MB, free: 42.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001048/0.521, allocations: 0.6702 MB / 462.1 MB, free: 42.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/0.5211, allocations: 297.2 kB / 462.4 MB, free: 42.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.5211, allocations: 12.62 kB / 462.4 MB, free: 42.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.5212, allocations: 15.75 kB / 462.4 MB, free: 42.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.5216, allocations: 141.3 kB / 462.5 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.5216, allocations: 12.94 kB / 462.6 MB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.522, allocations: 87.83 kB / 462.6 MB, free: 42.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.5221, allocations: 30.78 kB / 462.7 MB, free: 42.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.12e-06/0.5221, allocations: 2.875 kB / 462.7 MB, free: 42.46 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000747/0.5228, allocations: 0.5442 MB / 463.2 MB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.5228, allocations: 8.531 kB / 463.2 MB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.5228, allocations: 8.562 kB / 463.2 MB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.5232, allocations: 142 kB / 463.4 MB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.5233, allocations: 12.16 kB / 463.4 MB, free: 42.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.5236, allocations: 63.88 kB / 463.5 MB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.5236, allocations: 28.69 kB / 463.5 MB, free: 42.36 MB / 382.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.0002238/0.5238, allocations: 279 kB / 463.8 MB, free: 42.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.781e-05/0.5239, allocations: 60.84 kB / 463.8 MB, free: 42.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.5241, allocations: 72.97 kB / 463.9 MB, free: 42.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.5241, allocations: 6.688 kB / 463.9 MB, free: 42.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.5241, allocations: 10.06 kB / 463.9 MB, free: 42.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.5241, allocations: 0.5625 kB / 463.9 MB, free: 42.11 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006292/0.5247, allocations: 0.5738 MB / 464.5 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.5247, allocations: 0 / 464.5 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.5252, allocations: 90.69 kB / 464.6 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.5252, allocations: 0 / 464.6 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.5252, allocations: 12.03 kB / 464.6 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5252, allocations: 0 / 464.6 MB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5252, allocations: 7.469 kB / 464.6 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.5262, allocations: 0.8178 MB / 465.4 MB, free: 41.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.5264, allocations: 169.5 kB / 465.6 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.708e-05/0.5264, allocations: 9.594 kB / 465.6 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.5267, allocations: 27.62 kB / 465.6 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.733e-05/0.5268, allocations: 37.44 kB / 465.6 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.5268, allocations: 11.84 kB / 465.7 MB, free: 41.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002828/0.5271, allocations: 382 kB / 466 MB, free: 41.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5271, allocations: 0 / 466 MB, free: 41.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006787/0.5278, allocations: 244.7 kB / 466.3 MB, free: 41.35 MB / 382.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 9.423e-05/0.5279, allocations: 104.4 kB / 466.4 MB, free: 41.26 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.5291, allocations: 0.7553 MB / 467.1 MB, free: 41.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5291, allocations: 0 / 467.1 MB, free: 41.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003381/0.5295, allocations: 205.2 kB / 467.3 MB, free: 41.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009445/0.5304, allocations: 171.9 kB / 467.5 MB, free: 41.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001697/0.5321, allocations: 1.763 MB / 469.3 MB, free: 40.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.5324, allocations: 0.914 MB / 470.2 MB, free: 39.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002769/0.5327, allocations: 73.64 kB / 470.2 MB, free: 39.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.5328, allocations: 44.28 kB / 470.3 MB, free: 39.48 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5328, allocations: 0 / 470.3 MB, free: 39.48 MB / 382.1 MB Notification: Performance of Templates: time 0.009299/0.5421, allocations: 5.942 MB / 476.2 MB, free: 39.09 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches