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.0008023/0.0008021, allocations: 94.31 kB / 18.01 MB, free: 5.738 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.0008966/0.0008968, allocations: 181.1 kB / 18.91 MB, free: 4.871 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.311/1.311, allocations: 223.3 MB / 243 MB, free: 14.45 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.198/0.198, allocations: 44.24 MB / 338.3 MB, free: 2.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003153/0.0003154, allocations: 8.781 kB / 411 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1192, allocations: 61.92 MB / 472.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004709/0.1239, allocations: 3.608 MB / 476.5 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.1265, allocations: 1.177 MB / 477.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006327/0.1271, allocations: 27.81 kB / 477.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003738/0.1275, allocations: 83.22 kB / 477.8 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007861/0.1283, allocations: 138.9 kB / 477.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009187/0.1293, allocations: 355.1 kB / 478.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001108/0.1304, allocations: 0.7837 MB / 479.1 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005352/0.1309, allocations: 280.2 kB / 479.3 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004993/0.1314, allocations: 258.6 kB / 479.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004246/0.1319, allocations: 262.3 kB / 479.9 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.132, allocations: 24 kB / 479.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.674e-05/0.1321, allocations: 24 kB / 479.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.783e-05/0.1322, allocations: 107.3 kB / 480 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002995/0.1325, allocations: 319.6 kB / 480.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005345/0.133, allocations: 0.5416 MB / 480.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.133, allocations: 0 / 480.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1331, allocations: 4 kB / 480.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.314e-05/0.1331, allocations: 0 / 480.9 MB, free: 5.328 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.001857/0.135, allocations: 0.9426 MB / 481.8 MB, free: 4.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.135, allocations: 8.031 kB / 481.8 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.1353, allocations: 87.91 kB / 481.9 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009092/0.1362, allocations: 0.4993 MB / 482.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.46e-05/0.1362, allocations: 41.69 kB / 482.4 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.1364, allocations: 64.28 kB / 482.5 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.1376, allocations: 0.6156 MB / 483.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.1376, allocations: 7.984 kB / 483.1 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.385e-05/0.1377, allocations: 24 kB / 483.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/0.1377, allocations: 16 kB / 483.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008465/0.1386, allocations: 401.9 kB / 483.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004322/0.1429, allocations: 3.04 MB / 486.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.1439, allocations: 477.6 kB / 487.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003707/0.1443, allocations: 178.2 kB / 487.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.1444, allocations: 12 kB / 487.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.1444, allocations: 34.56 kB / 487.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.114e-06/0.1444, allocations: 0 / 487.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001325/0.1457, allocations: 0.5716 MB / 487.9 MB, free: 14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.1458, allocations: 110.8 kB / 488 MB, free: 13.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006606/0.1465, allocations: 0.5392 MB / 488.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.302e-05/0.1465, allocations: 37.7 kB / 488.5 MB, free: 13.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002763/0.1468, allocations: 368 kB / 488.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.147, allocations: 153.8 kB / 489 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.1471, allocations: 73.61 kB / 489.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.1473, allocations: 374.8 kB / 489.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004296/0.1477, allocations: 189.2 kB / 489.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005963/0.1483, allocations: 413.1 kB / 490.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.1494, allocations: 0.588 MB / 490.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.1494, allocations: 4 kB / 490.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00131/0.1507, allocations: 0.6644 MB / 491.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002084/0.1509, allocations: 294.4 kB / 491.6 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1509, allocations: 8 kB / 491.6 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.151, allocations: 12 kB / 491.6 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000562/0.1515, allocations: 139.8 kB / 491.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.69e-05/0.1516, allocations: 23.98 kB / 491.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004709/0.152, allocations: 79.36 kB / 491.9 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.994e-05/0.1521, allocations: 28 kB / 491.9 MB, free: 9.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/0.1521, allocations: 4 kB / 491.9 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001037/0.1532, allocations: 0.5502 MB / 492.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.1532, allocations: 8 kB / 492.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.1532, allocations: 8 kB / 492.5 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004726/0.1537, allocations: 143.8 kB / 492.6 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/0.1537, allocations: 19.92 kB / 492.6 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003906/0.1541, allocations: 63.73 kB / 492.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.871e-05/0.1542, allocations: 28 kB / 492.7 MB, free: 8.781 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.0003074/0.1545, allocations: 279 kB / 493 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.1546, allocations: 67.16 kB / 493.1 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000163/0.1548, allocations: 70.17 kB / 493.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.1548, allocations: 4 kB / 493.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.1548, allocations: 4 kB / 493.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.1548, allocations: 7.922 kB / 493.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008179/0.1556, allocations: 0.5751 MB / 493.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1557, allocations: 0 / 493.7 MB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004982/0.1562, allocations: 87.89 kB / 493.8 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.756e-06/0.1562, allocations: 4 kB / 493.8 MB, free: 7.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.1562, allocations: 8 kB / 493.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1562, allocations: 0 / 493.8 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1562, allocations: 3.984 kB / 493.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.1576, allocations: 0.8119 MB / 494.6 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.1578, allocations: 176.3 kB / 494.8 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.804e-05/0.1579, allocations: 8 kB / 494.8 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003486/0.1582, allocations: 27.98 kB / 494.8 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-05/0.1583, allocations: 39.88 kB / 494.9 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.758e-05/0.1584, allocations: 12 kB / 494.9 MB, free: 6.516 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004089/0.1588, allocations: 375.1 kB / 495.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1588, allocations: 3.938 kB / 495.3 MB, free: 6.148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008367/0.1596, allocations: 239.2 kB / 495.5 MB, free: 5.914 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.0001301/0.1598, allocations: 108.9 kB / 495.6 MB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001482/0.1613, allocations: 0.757 MB / 496.4 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1613, allocations: 0 / 496.4 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003977/0.1617, allocations: 205.2 kB / 496.6 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.1628, allocations: 164 kB / 496.7 MB, free: 4.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/0.1653, allocations: 1.789 MB / 498.5 MB, free: 2.871 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.1658, allocations: 0.9146 MB / 499.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001696/0.166, allocations: 43.44 kB / 499.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of SimCode: time 9.51e-07/0.166, allocations: 0 / 499.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of Templates: time 0.01319/0.1792, allocations: 7.573 MB / 0.4952 GB, free: 10.34 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