Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 105.9 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 195.5 kB / 19.23 MB, free: 3.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 222.9 MB / 242.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2128/0.2128, allocations: 44.18 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001367, allocations: 59.38 kB / 409.1 MB, free: 27.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1762, allocations: 60.82 MB / 469.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.008894/0.1851, allocations: 4.019 MB / 473.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004149/0.1893, allocations: 1.208 MB / 475.1 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.1905, allocations: 23.88 kB / 475.2 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005872/0.1911, allocations: 118.7 kB / 475.3 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009517/0.1921, allocations: 177.8 kB / 475.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.1934, allocations: 387.4 kB / 475.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.1948, allocations: 0.8307 MB / 476.7 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007249/0.1956, allocations: 304.8 kB / 477 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005902/0.1962, allocations: 318.6 kB / 477.3 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004969/0.1967, allocations: 326.2 kB / 477.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.1968, allocations: 67.94 kB / 477.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.197, allocations: 68 kB / 477.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.1972, allocations: 151.3 kB / 477.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004253/0.1976, allocations: 357.9 kB / 478.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.1987, allocations: 0.759 MB / 479 MB, free: 5.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.1987, allocations: 0 / 479 MB, free: 5.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1988, allocations: 0 / 479 MB, free: 5.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.1988, allocations: 4 kB / 479 MB, free: 5.277 MB / 350.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.002542/0.2013, allocations: 1.059 MB / 480 MB, free: 4.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.655e-05/0.2014, allocations: 8.031 kB / 480.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002278/0.2016, allocations: 95.83 kB / 480.1 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000973/0.2026, allocations: 0.4954 MB / 480.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.614e-05/0.2027, allocations: 45.69 kB / 480.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.2029, allocations: 72.27 kB / 480.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.2043, allocations: 0.5999 MB / 481.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.234e-05/0.2044, allocations: 8 kB / 481.4 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.166e-05/0.2045, allocations: 20 kB / 481.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.265e-05/0.2045, allocations: 16 kB / 481.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.2057, allocations: 389.9 kB / 481.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005753/0.2114, allocations: 3.001 MB / 484.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.2129, allocations: 445.7 kB / 485.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005446/0.2135, allocations: 169.6 kB / 485.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.696e-05/0.2135, allocations: 4 kB / 485.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.2136, allocations: 34.56 kB / 485.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 4.408e-06/0.2136, allocations: 0 / 485.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.00204/0.2156, allocations: 0.5364 MB / 486 MB, free: 13.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.2158, allocations: 114.8 kB / 486.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009476/0.2167, allocations: 0.5392 MB / 486.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.967e-05/0.2168, allocations: 37.7 kB / 486.6 MB, free: 13.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003893/0.2172, allocations: 372 kB / 487 MB, free: 12.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.2174, allocations: 153.8 kB / 487.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002475/0.2177, allocations: 118.2 kB / 487.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002129/0.2179, allocations: 374.8 kB / 487.6 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006188/0.2185, allocations: 187.4 kB / 487.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00084/0.2194, allocations: 393.1 kB / 488.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/0.2208, allocations: 0.5762 MB / 488.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/0.2208, allocations: 0 / 488.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001957/0.2228, allocations: 0.6486 MB / 489.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.2228, allocations: 8 kB / 489.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.2229, allocations: 15.88 kB / 489.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.933e-05/0.2229, allocations: 12 kB / 489.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008601/0.2238, allocations: 143.7 kB / 489.6 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.634e-05/0.2238, allocations: 20 kB / 489.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007343/0.2246, allocations: 75.72 kB / 489.7 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/0.2247, allocations: 28 kB / 489.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008804/0.2256, allocations: 305.4 kB / 490 MB, free: 9.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007384/0.2263, allocations: 377 kB / 490.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001344/0.2277, allocations: 0.56 MB / 491 MB, free: 8.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.34e-06/0.2277, allocations: 0 / 491 MB, free: 8.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.001762/0.2295, allocations: 0.6252 MB / 491.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.2295, allocations: 8 kB / 491.6 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.2295, allocations: 8 kB / 491.6 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.2296, allocations: 8 kB / 491.6 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007475/0.2303, allocations: 131.8 kB / 491.7 MB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.994e-05/0.2304, allocations: 15.94 kB / 491.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006608/0.231, allocations: 67.7 kB / 491.8 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.428e-05/0.2311, allocations: 31.98 kB / 491.8 MB, free: 7.621 MB / 366.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.0003319/0.2315, allocations: 220 kB / 492.1 MB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002309/0.2317, allocations: 63.16 kB / 492.1 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002262/0.2319, allocations: 74.17 kB / 492.2 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.232, allocations: 4 kB / 492.2 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/0.232, allocations: 7.938 kB / 492.2 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.232, allocations: 3.984 kB / 492.2 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.2334, allocations: 0.5596 MB / 492.8 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.2334, allocations: 7.984 kB / 492.8 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.2342, allocations: 87.89 kB / 492.9 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/0.2342, allocations: 0 / 492.9 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-05/0.2343, allocations: 8 kB / 492.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.2343, allocations: 0 / 492.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.2343, allocations: 7.938 kB / 492.9 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/0.2363, allocations: 0.7813 MB / 493.7 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003504/0.2367, allocations: 168.4 kB / 493.8 MB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001391/0.2369, allocations: 12 kB / 493.8 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005844/0.2375, allocations: 23.97 kB / 493.9 MB, free: 5.508 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.2377, allocations: 43.81 kB / 493.9 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.765e-05/0.2377, allocations: 12 kB / 493.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007284/0.2384, allocations: 367.1 kB / 494.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2385, allocations: 0 / 494.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001625/0.2401, allocations: 243.1 kB / 494.5 MB, free: 4.863 MB / 366.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.0001998/0.2403, allocations: 115.2 kB / 494.6 MB, free: 4.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.2428, allocations: 0.7413 MB / 495.4 MB, free: 4.004 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.2429, allocations: 7.938 kB / 495.4 MB, free: 3.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006552/0.2435, allocations: 191.8 kB / 495.6 MB, free: 3.809 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.2453, allocations: 191.4 kB / 495.7 MB, free: 3.633 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003903/0.2492, allocations: 1.435 MB / 497.2 MB, free: 2.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008796/0.2502, allocations: 0.9104 MB / 498.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.2505, allocations: 43.44 kB / 498.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2505, allocations: 0 / 498.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of Templates: time 0.02101/0.2715, allocations: 7.668 MB / 0.4939 GB, free: 9.535 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches