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.00136/0.00136, allocations: 108.1 kB / 17.98 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.001284/0.001284, allocations: 189.3 kB / 18.9 MB, free: 4.141 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.317/1.317, allocations: 222.9 MB / 242.6 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.1922/0.1922, allocations: 44.17 MB / 336.9 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.59 kB / 408.5 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 60.84 MB / 469.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005052/0.1081, allocations: 4.014 MB / 473.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.1102, allocations: 1.192 MB / 474.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002909/0.1105, allocations: 27.81 kB / 474.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002735/0.1108, allocations: 87.23 kB / 474.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004641/0.1112, allocations: 139 kB / 474.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006138/0.1119, allocations: 350.6 kB / 475.2 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000754/0.1126, allocations: 0.8384 MB / 476 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004267/0.1131, allocations: 296.9 kB / 476.3 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003536/0.1134, allocations: 326.5 kB / 476.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002896/0.1137, allocations: 326.2 kB / 476.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.782e-05/0.1138, allocations: 64 kB / 477 MB, free: 7.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.865e-05/0.1139, allocations: 68 kB / 477.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.114, allocations: 155.3 kB / 477.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.1143, allocations: 353.9 kB / 477.6 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004893/0.1148, allocations: 0.5807 MB / 478.1 MB, free: 5.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1148, allocations: 4 kB / 478.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1148, allocations: 0 / 478.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.1148, allocations: 0 / 478.2 MB, free: 5.922 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.001512/0.1163, allocations: 1.059 MB / 479.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.1164, allocations: 8.031 kB / 479.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.1165, allocations: 91.91 kB / 479.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005671/0.1171, allocations: 0.5071 MB / 479.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.1171, allocations: 41.69 kB / 479.9 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.709e-05/0.1172, allocations: 72.27 kB / 479.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009907/0.1182, allocations: 0.5961 MB / 480.5 MB, free: 3.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.1182, allocations: 7.938 kB / 480.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.981e-05/0.1183, allocations: 24 kB / 480.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.1183, allocations: 16 kB / 480.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007308/0.1191, allocations: 386 kB / 480.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003429/0.1225, allocations: 3.005 MB / 484 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000856/0.1234, allocations: 449.7 kB / 484.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.1237, allocations: 178.2 kB / 484.6 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.66e-05/0.1237, allocations: 4 kB / 484.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.1238, allocations: 38.56 kB / 484.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.593e-06/0.1238, allocations: 0 / 484.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001094/0.1249, allocations: 0.544 MB / 485.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.1249, allocations: 110.8 kB / 485.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005096/0.1254, allocations: 0.547 MB / 485.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.1255, allocations: 29.7 kB / 485.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002208/0.1257, allocations: 372 kB / 486.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.1258, allocations: 149.8 kB / 486.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.126, allocations: 118.2 kB / 486.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1261, allocations: 374.8 kB / 486.8 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003753/0.1265, allocations: 183.4 kB / 487 MB, free: 12.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004848/0.127, allocations: 401 kB / 487.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008309/0.1279, allocations: 0.5684 MB / 488 MB, free: 11.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1279, allocations: 0 / 488 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001097/0.129, allocations: 0.6522 MB / 488.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.129, allocations: 8 kB / 488.6 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.129, allocations: 4 kB / 488.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.129, allocations: 12 kB / 488.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004899/0.1295, allocations: 140.5 kB / 488.8 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.709e-05/0.1296, allocations: 19.88 kB / 488.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003614/0.1299, allocations: 75.34 kB / 488.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.13, allocations: 28 kB / 488.9 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004499/0.1304, allocations: 301.4 kB / 489.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004453/0.1309, allocations: 385 kB / 489.6 MB, free: 9.812 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007375/0.1316, allocations: 0.552 MB / 490.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.059e-06/0.1317, allocations: 0 / 490.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.0009742/0.1326, allocations: 0.6326 MB / 490.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.1327, allocations: 8 kB / 490.8 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.1327, allocations: 8.469 kB / 490.8 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.205e-06/0.1327, allocations: 8 kB / 490.8 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.1331, allocations: 136.3 kB / 490.9 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.1332, allocations: 19.94 kB / 490.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003305/0.1335, allocations: 59.45 kB / 491 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.567e-05/0.1335, allocations: 31.98 kB / 491 MB, free: 8.262 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.0001558/0.1337, allocations: 226.5 kB / 491.2 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1338, allocations: 67.16 kB / 491.3 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.134, allocations: 70.17 kB / 491.4 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.134, allocations: 7.938 kB / 491.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.134, allocations: 7.938 kB / 491.4 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.134, allocations: 7.984 kB / 491.4 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006934/0.1347, allocations: 0.5635 MB / 492 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1347, allocations: 0 / 492 MB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004753/0.1352, allocations: 87.88 kB / 492 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1352, allocations: 0 / 492 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.1352, allocations: 12 kB / 492.1 MB, free: 7.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1352, allocations: 4 kB / 492.1 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.1353, allocations: 7.922 kB / 492.1 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.1364, allocations: 0.7803 MB / 492.9 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/0.1366, allocations: 160.4 kB / 493 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.945e-05/0.1367, allocations: 12 kB / 493 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003315/0.137, allocations: 23.97 kB / 493 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.978e-05/0.1371, allocations: 43.81 kB / 493.1 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.1371, allocations: 12 kB / 493.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003637/0.1375, allocations: 375.1 kB / 493.5 MB, free: 5.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1375, allocations: 0 / 493.5 MB, free: 5.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007399/0.1382, allocations: 243.1 kB / 493.7 MB, free: 5.492 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.0001211/0.1384, allocations: 109.4 kB / 493.8 MB, free: 5.379 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.1397, allocations: 0.7398 MB / 494.5 MB, free: 4.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1397, allocations: 0 / 494.5 MB, free: 4.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000347/0.1401, allocations: 193.7 kB / 494.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.141, allocations: 174.2 kB / 494.9 MB, free: 4.289 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.1432, allocations: 1.683 MB / 496.6 MB, free: 2.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.1436, allocations: 0.9104 MB / 497.5 MB, free: 1.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.1438, allocations: 43.44 kB / 497.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1438, allocations: 0 / 497.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of Templates: time 0.01/0.1538, allocations: 7.676 MB / 0.4934 GB, free: 9.934 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