Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001761/0.001769, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.002066/0.002066, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 222.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3583/0.3583, allocations: 38.03 MB / 308.4 MB, free: 10.46 MB / 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: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005588/0.0005589, allocations: 12 kB / 376.4 MB, free: 15.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1047, allocations: 57.52 MB / 433.9 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.003735/0.1084, allocations: 3.362 MB / 437.3 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002185/0.1107, allocations: 1.209 MB / 438.5 MB, free: 1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006784/0.1114, allocations: 23.81 kB / 438.5 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.1116, allocations: 55.42 kB / 438.6 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009201/0.1126, allocations: 179.4 kB / 438.7 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008505/0.1134, allocations: 295.5 kB / 439 MB, free: 468 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000961/0.1144, allocations: 0.5508 MB / 439.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000367/0.1148, allocations: 216.8 kB / 439.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.1152, allocations: 266.8 kB / 440 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003458/0.1155, allocations: 250.5 kB / 440.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.192e-05/0.1156, allocations: 24 kB / 440.3 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.789e-05/0.1157, allocations: 24 kB / 440.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.031e-05/0.1158, allocations: 103.5 kB / 440.4 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.1159, allocations: 133.3 kB / 440.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.1164, allocations: 0.5454 MB / 441.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1164, allocations: 8 kB / 441.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1164, allocations: 0 / 441.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.414e-05/0.1165, allocations: 0 / 441.1 MB, free: 14.34 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.001632/0.1181, allocations: 0.9502 MB / 442.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.1182, allocations: 8.031 kB / 442.1 MB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.1183, allocations: 90.97 kB / 442.2 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006523/0.119, allocations: 494.4 kB / 442.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.119, allocations: 45.25 kB / 442.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.846e-05/0.1191, allocations: 59.91 kB / 442.8 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009305/0.1201, allocations: 0.6116 MB / 443.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.149e-05/0.1201, allocations: 3.938 kB / 443.4 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.653e-05/0.1201, allocations: 24 kB / 443.4 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.1202, allocations: 15.95 kB / 443.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007283/0.1209, allocations: 394.2 kB / 443.8 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003541/0.1244, allocations: 3.04 MB / 446.8 MB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009383/0.1254, allocations: 473.8 kB / 447.3 MB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.1255, allocations: 7.953 kB / 447.3 MB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.1255, allocations: 42.48 kB / 447.3 MB, free: 7.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.653e-06/0.1255, allocations: 0 / 447.3 MB, free: 7.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001151/0.1267, allocations: 0.5719 MB / 447.9 MB, free: 7.207 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.1267, allocations: 106.8 kB / 448 MB, free: 7.078 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005391/0.1273, allocations: 0.5392 MB / 448.6 MB, free: 6.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.1273, allocations: 37.7 kB / 448.6 MB, free: 6.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/0.1275, allocations: 376.1 kB / 449 MB, free: 6.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.1277, allocations: 153.8 kB / 449.1 MB, free: 5.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.1277, allocations: 12 kB / 449.1 MB, free: 5.953 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1278, allocations: 378.8 kB / 449.5 MB, free: 5.574 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.1282, allocations: 185.2 kB / 449.7 MB, free: 5.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004915/0.1287, allocations: 397 kB / 450.1 MB, free: 4.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004355/0.1292, allocations: 240.5 kB / 450.3 MB, free: 4.676 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1292, allocations: 3.938 kB / 450.3 MB, free: 4.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001101/0.1303, allocations: 0.6638 MB / 451 MB, free: 4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009018/0.1312, allocations: 2.612 MB / 453.6 MB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.1312, allocations: 11.98 kB / 453.6 MB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.1313, allocations: 12 kB / 453.6 MB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005133/0.1318, allocations: 147.7 kB / 453.8 MB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.77e-05/0.1318, allocations: 15.94 kB / 453.8 MB, free: 1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003888/0.1322, allocations: 87.34 kB / 453.9 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.196e-05/0.1322, allocations: 27.98 kB / 453.9 MB, free: 0.8867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.696e-06/0.1323, allocations: 8 kB / 453.9 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009237/0.1332, allocations: 0.5428 MB / 454.4 MB, free: 344 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.1332, allocations: 8 kB / 454.4 MB, free: 336 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.1332, allocations: 15.89 kB / 454.5 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004623/0.1337, allocations: 135.8 kB / 454.6 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.1337, allocations: 11.94 kB / 454.6 MB, free: 172 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.1341, allocations: 71.64 kB / 454.7 MB, free: 100 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.1341, allocations: 24 kB / 454.7 MB, free: 76 kB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2175/0.3516, allocations: 272.1 kB / 455 MB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002655/0.3519, allocations: 67.25 kB / 455 MB, free: 49.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.3521, allocations: 70.84 kB / 455.1 MB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.3521, allocations: 7.75 kB / 455.1 MB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.3521, allocations: 0 / 455.1 MB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.3522, allocations: 5.297 kB / 455.1 MB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009403/0.3531, allocations: 0.5744 MB / 455.7 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.3531, allocations: 0.7812 kB / 455.7 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004833/0.3536, allocations: 95.16 kB / 455.8 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.3536, allocations: 3.312 kB / 455.8 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.187e-05/0.3537, allocations: 9.75 kB / 455.8 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.3537, allocations: 0 / 455.8 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3537, allocations: 6.594 kB / 455.8 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/0.3548, allocations: 0.8274 MB / 456.6 MB, free: 49.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.355, allocations: 169.4 kB / 456.8 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.85e-05/0.3551, allocations: 7.469 kB / 456.8 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00032/0.3554, allocations: 36.59 kB / 456.8 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.358e-05/0.3555, allocations: 31.16 kB / 456.9 MB, free: 49.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.3556, allocations: 9.562 kB / 456.9 MB, free: 49.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003296/0.3559, allocations: 371.8 kB / 457.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3559, allocations: 0 / 457.2 MB, free: 49.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008421/0.3568, allocations: 244 kB / 457.5 MB, free: 49.08 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001309/0.3569, allocations: 103.4 kB / 457.6 MB, free: 48.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00139/0.3583, allocations: 0.7486 MB / 458.3 MB, free: 48.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3583, allocations: 0 / 458.3 MB, free: 48.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003307/0.3586, allocations: 204.5 kB / 458.5 MB, free: 48.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008885/0.3595, allocations: 154.5 kB / 458.7 MB, free: 48.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002718/0.3623, allocations: 1.685 MB / 460.4 MB, free: 48.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000443/0.3627, allocations: 0.9296 MB / 461.3 MB, free: 47.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003764/0.3631, allocations: 78.95 kB / 461.4 MB, free: 47.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.3633, allocations: 43.72 kB / 461.4 MB, free: 47.38 MB / 382.1 MB Notification: Performance of SimCode: time 3.386e-06/0.3633, allocations: 0 / 461.4 MB, free: 47.38 MB / 382.1 MB Notification: Performance of Templates: time 0.01127/0.3745, allocations: 5.729 MB / 467.1 MB, free: 47.02 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) Environment - environmentSimulation: