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.001086/0.001086, allocations: 111.8 kB / 17.09 MB, free: 5.984 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.001124/0.001124, allocations: 199.3 kB / 18.02 MB, free: 5.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1895/0.1895, allocations: 43.52 MB / 314.8 MB, free: 456 kB / 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.001341/0.001341, allocations: 77.39 kB / 442.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09633/0.09768, allocations: 57.78 MB / 0.4885 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005114/0.1028, allocations: 4.015 MB / 0.4925 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.1051, allocations: 1.263 MB / 0.4937 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.1054, allocations: 23.88 kB / 0.4937 GB, free: 6.461 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000257/0.1057, allocations: 114.7 kB / 0.4938 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004357/0.1061, allocations: 170.5 kB / 0.494 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006513/0.1068, allocations: 403.3 kB / 0.4944 GB, free: 5.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007498/0.1075, allocations: 0.8462 MB / 0.4952 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003923/0.1079, allocations: 293 kB / 0.4955 GB, free: 4.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003677/0.1083, allocations: 330.6 kB / 0.4958 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003087/0.1086, allocations: 326.2 kB / 0.4961 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.218e-05/0.1087, allocations: 64 kB / 0.4962 GB, free: 3.926 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.704e-05/0.1088, allocations: 68 kB / 0.4962 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001048/0.109, allocations: 151.4 kB / 0.4964 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002333/0.1092, allocations: 353.9 kB / 0.4967 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006486/0.1098, allocations: 0.8054 MB / 0.4975 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1099, allocations: 0 / 0.4975 GB, free: 2.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1099, allocations: 4 kB / 0.4975 GB, free: 2.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1099, allocations: 4 kB / 0.4975 GB, free: 2.547 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.001548/0.1114, allocations: 1.059 MB / 0.4986 GB, free: 1.438 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.1115, allocations: 11.89 kB / 0.4986 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.1116, allocations: 91.81 kB / 0.4986 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000727/0.1123, allocations: 0.5461 MB / 0.4992 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.1124, allocations: 41.69 kB / 0.4992 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.298e-05/0.1125, allocations: 60.28 kB / 0.4993 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009126/0.1134, allocations: 0.6113 MB / 0.4999 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.1134, allocations: 7.938 kB / 0.4999 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.262e-05/0.1135, allocations: 24 kB / 0.4999 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.1135, allocations: 12 kB / 0.4999 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000694/0.1142, allocations: 378.2 kB / 0.5003 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/0.1177, allocations: 2.993 MB / 0.5032 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008478/0.1186, allocations: 445.2 kB / 0.5036 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003291/0.1189, allocations: 173.6 kB / 0.5038 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.1189, allocations: 4 kB / 0.5038 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.119, allocations: 38.56 kB / 0.5038 GB, free: 11.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 1.803e-06/0.119, allocations: 0 / 0.5038 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=39): time 0.00111/0.1201, allocations: 0.5363 MB / 0.5044 GB, free: 11.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.1202, allocations: 110.8 kB / 0.5045 GB, free: 11.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005519/0.1207, allocations: 0.547 MB / 0.505 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.1208, allocations: 37.7 kB / 0.505 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/0.121, allocations: 368 kB / 0.5054 GB, free: 10.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.1211, allocations: 161.7 kB / 0.5055 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/0.1213, allocations: 114.2 kB / 0.5056 GB, free: 9.836 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1214, allocations: 378.8 kB / 0.506 GB, free: 9.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/0.1218, allocations: 187.3 kB / 0.5062 GB, free: 9.27 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004748/0.1223, allocations: 397 kB / 0.5066 GB, free: 8.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008039/0.1231, allocations: 0.5684 MB / 0.5071 GB, free: 8.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1231, allocations: 4 kB / 0.5071 GB, free: 8.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001065/0.1242, allocations: 0.6521 MB / 0.5078 GB, free: 7.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.1242, allocations: 8 kB / 0.5078 GB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.1242, allocations: 8 kB / 0.5078 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.1243, allocations: 12.69 kB / 0.5078 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005013/0.1248, allocations: 139.8 kB / 0.5079 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.032e-05/0.1248, allocations: 23.88 kB / 0.5079 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003533/0.1252, allocations: 63.42 kB / 0.508 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.1252, allocations: 35.98 kB / 0.508 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004702/0.1257, allocations: 301.4 kB / 0.5083 GB, free: 6.879 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004248/0.1261, allocations: 382.5 kB / 0.5087 GB, free: 6.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007332/0.1269, allocations: 0.5559 MB / 0.5092 GB, free: 5.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.845e-06/0.1269, allocations: 0 / 0.5092 GB, free: 5.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=78) (initialization_lambda0): time 0.0009747/0.1279, allocations: 0.6251 MB / 0.5098 GB, free: 5.133 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.1279, allocations: 11.94 kB / 0.5099 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.1279, allocations: 11.94 kB / 0.5099 GB, free: 5.109 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1279, allocations: 8 kB / 0.5099 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004527/0.1284, allocations: 132.4 kB / 0.51 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/0.1284, allocations: 19.94 kB / 0.51 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.1287, allocations: 59.45 kB / 0.5101 GB, free: 4.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.1288, allocations: 28 kB / 0.5101 GB, free: 4.867 MB / 398.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.0001506/0.1289, allocations: 234.8 kB / 0.5103 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.129, allocations: 67.16 kB / 0.5104 GB, free: 4.566 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.1292, allocations: 70.17 kB / 0.5105 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1292, allocations: 0 / 0.5105 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1292, allocations: 7.938 kB / 0.5105 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.1294, allocations: 172.2 kB / 0.5106 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.968e-05/0.1295, allocations: 8 kB / 0.5106 GB, free: 4.289 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000332/0.1298, allocations: 27.98 kB / 0.5107 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/0.1299, allocations: 31.94 kB / 0.5107 GB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001605/0.1315, allocations: 0.6871 MB / 0.5114 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001205/0.1327, allocations: 0.8815 MB / 0.5122 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003378/0.1331, allocations: 167.9 kB / 0.5124 GB, free: 2.477 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003584/0.1334, allocations: 387 kB / 0.5128 GB, free: 2.102 MB / 398.1 MB Notification: Performance of Backend: time 6.01e-07/0.1334, allocations: 0 / 0.5128 GB, free: 2.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.1348, allocations: 0.6683 MB / 0.5134 GB, free: 1.43 MB / 398.1 MB Notification: Performance of SimCode: time 0.002233/0.1371, allocations: 1.939 MB / 0.5153 GB, free: 15.44 MB / 414.1 MB Notification: Performance of Templates: time 0.01476/0.1518, allocations: 9.895 MB / 0.525 GB, free: 5.562 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches