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.001151/0.001151, allocations: 113.4 kB / 17.86 MB, free: 5.629 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.001102/0.001102, allocations: 201.9 kB / 18.77 MB, free: 4.715 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.348/1.348, allocations: 222.9 MB / 242.4 MB, free: 15.46 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.2124/0.2124, allocations: 44.18 MB / 336.8 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 72.61 kB / 408.3 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.108, allocations: 60.83 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005272/0.1133, allocations: 4.026 MB / 473.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002284/0.1156, allocations: 1.196 MB / 474.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006522/0.1163, allocations: 23.88 kB / 474.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000394/0.1167, allocations: 79.23 kB / 474.5 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000676/0.1174, allocations: 143 kB / 474.6 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008072/0.1182, allocations: 350.5 kB / 475 MB, free: 9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009262/0.1191, allocations: 0.7954 MB / 475.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004757/0.1196, allocations: 280.2 kB / 476 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004924/0.1201, allocations: 282.6 kB / 476.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003962/0.1205, allocations: 310.2 kB / 476.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.1206, allocations: 36 kB / 476.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.1208, allocations: 36 kB / 476.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.1209, allocations: 131.3 kB / 476.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002799/0.1212, allocations: 321.9 kB / 477.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.1216, allocations: 0.5535 MB / 477.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1216, allocations: 0 / 477.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1217, allocations: 0 / 477.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.017e-05/0.1217, allocations: 0 / 477.7 MB, free: 6.266 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.001822/0.1235, allocations: 1.063 MB / 478.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1235, allocations: 8.031 kB / 478.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.1237, allocations: 87.91 kB / 478.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007109/0.1244, allocations: 0.5071 MB / 479.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.22e-05/0.1245, allocations: 37.69 kB / 479.4 MB, free: 4.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.654e-05/0.1246, allocations: 68.28 kB / 479.5 MB, free: 4.406 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.1256, allocations: 0.6078 MB / 480.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.1257, allocations: 3.938 kB / 480.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.1257, allocations: 24 kB / 480.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.1257, allocations: 12 kB / 480.1 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000788/0.1265, allocations: 394 kB / 480.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003978/0.1305, allocations: 3.005 MB / 483.5 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009444/0.1315, allocations: 445.8 kB / 483.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003648/0.1319, allocations: 174.2 kB / 484.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.731e-05/0.1319, allocations: 4 kB / 484.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.1319, allocations: 38.56 kB / 484.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.673e-06/0.132, allocations: 0 / 484.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001221/0.1332, allocations: 0.5285 MB / 484.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.1333, allocations: 110.8 kB / 484.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005967/0.1339, allocations: 0.547 MB / 485.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.1339, allocations: 37.7 kB / 485.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002577/0.1342, allocations: 372 kB / 485.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.1343, allocations: 157.8 kB / 485.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.1345, allocations: 114.2 kB / 486 MB, free: 13.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1346, allocations: 374.8 kB / 486.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/0.135, allocations: 187.4 kB / 486.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.1356, allocations: 397 kB / 486.9 MB, free: 12.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009681/0.1366, allocations: 0.5684 MB / 487.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.114e-06/0.1366, allocations: 4 kB / 487.5 MB, free: 11.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001255/0.1378, allocations: 0.6491 MB / 488.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.1379, allocations: 11.94 kB / 488.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.1379, allocations: 8 kB / 488.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.216e-05/0.1379, allocations: 11.94 kB / 488.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.1384, allocations: 139.8 kB / 488.3 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.952e-05/0.1385, allocations: 15.95 kB / 488.3 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004075/0.1389, allocations: 71.36 kB / 488.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-05/0.139, allocations: 40.08 kB / 488.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005066/0.1395, allocations: 305.4 kB / 488.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004764/0.14, allocations: 381 kB / 489.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007957/0.1408, allocations: 0.5481 MB / 489.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.702e-06/0.1408, allocations: 4 kB / 489.7 MB, free: 9.504 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.00107/0.1419, allocations: 0.6293 MB / 490.3 MB, free: 8.867 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.1419, allocations: 12.03 kB / 490.3 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1419, allocations: 4 kB / 490.3 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1419, allocations: 12 kB / 490.3 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004838/0.1424, allocations: 135.8 kB / 490.5 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.1424, allocations: 11.94 kB / 490.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003882/0.1428, allocations: 63.45 kB / 490.5 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.246e-05/0.1429, allocations: 24 kB / 490.6 MB, free: 8.609 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.0001886/0.1431, allocations: 228 kB / 490.8 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.1432, allocations: 67.16 kB / 490.8 MB, free: 8.312 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.1433, allocations: 78.16 kB / 490.9 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1433, allocations: 4 kB / 490.9 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.1434, allocations: 7.938 kB / 490.9 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1434, allocations: 0 / 490.9 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008095/0.1442, allocations: 0.5596 MB / 491.5 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1442, allocations: 0 / 491.5 MB, free: 7.613 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005009/0.1447, allocations: 87.89 kB / 491.6 MB, free: 7.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/0.1447, allocations: 7.984 kB / 491.6 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.1448, allocations: 12 kB / 491.6 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1448, allocations: 0 / 491.6 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1448, allocations: 3.938 kB / 491.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.146, allocations: 0.7721 MB / 492.4 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.1462, allocations: 168.4 kB / 492.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.677e-05/0.1463, allocations: 12 kB / 492.5 MB, free: 6.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.1467, allocations: 27.98 kB / 492.6 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.1468, allocations: 39.81 kB / 492.6 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.1468, allocations: 19.92 kB / 492.6 MB, free: 6.441 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003869/0.1472, allocations: 367.1 kB / 493 MB, free: 6.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1472, allocations: 0 / 493 MB, free: 6.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008114/0.148, allocations: 247.1 kB / 493.2 MB, free: 5.844 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.0001248/0.1482, allocations: 115.2 kB / 493.3 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.1496, allocations: 0.725 MB / 494.1 MB, free: 5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.1496, allocations: 8.062 kB / 494.1 MB, free: 4.992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.15, allocations: 184.9 kB / 494.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.1511, allocations: 169.8 kB / 494.4 MB, free: 4.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002435/0.1535, allocations: 1.676 MB / 496.1 MB, free: 2.941 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004735/0.154, allocations: 0.9068 MB / 497 MB, free: 2.004 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.1542, allocations: 51.42 kB / 497.1 MB, free: 1.953 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1542, allocations: 0 / 497.1 MB, free: 1.953 MB / 366.1 MB Notification: Performance of Templates: time 0.01172/0.166, allocations: 7.672 MB / 0.4929 GB, free: 10.31 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