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.0007722/0.0007723, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.0007931/0.0007931, allocations: 172.7 kB / 15.95 MB, free: 204 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.193/1.193, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.2669/0.2669, allocations: 38.04 MB / 308.4 MB, free: 10.38 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.0005243/0.0005244, allocations: 12 kB / 376.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09283, allocations: 57.53 MB / 434 MB, free: 5.555 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.003662/0.09652, allocations: 3.416 MB / 437.4 MB, free: 2.113 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002084/0.09863, allocations: 1.205 MB / 438.6 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004536/0.09912, allocations: 23.88 kB / 438.6 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002465/0.09938, allocations: 79.23 kB / 438.7 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004997/0.09989, allocations: 135 kB / 438.8 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006591/0.1006, allocations: 291.6 kB / 439.1 MB, free: 392 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008359/0.1014, allocations: 0.7448 MB / 439.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003758/0.1018, allocations: 216.8 kB / 440.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003836/0.1022, allocations: 250.7 kB / 440.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.1025, allocations: 254.4 kB / 440.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.708e-05/0.1026, allocations: 24 kB / 440.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.395e-05/0.1027, allocations: 24 kB / 440.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.779e-05/0.1027, allocations: 103.5 kB / 440.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.1029, allocations: 137.3 kB / 440.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004472/0.1033, allocations: 0.5455 MB / 441.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1034, allocations: 0 / 441.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1034, allocations: 0 / 441.4 MB, free: 14.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.131e-05/0.1034, allocations: 0 / 441.4 MB, free: 14.08 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.001406/0.1048, allocations: 0.958 MB / 442.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.1048, allocations: 8.031 kB / 442.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.105, allocations: 90.97 kB / 442.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.1056, allocations: 498.4 kB / 442.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.1057, allocations: 41.31 kB / 443 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.156e-05/0.1058, allocations: 59.91 kB / 443 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009438/0.1067, allocations: 0.6154 MB / 443.6 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.1067, allocations: 4 kB / 443.6 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.382e-05/0.1068, allocations: 20 kB / 443.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1068, allocations: 19.95 kB / 443.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000711/0.1075, allocations: 402.2 kB / 444.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003469/0.111, allocations: 3.032 MB / 447.1 MB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008484/0.1119, allocations: 461.7 kB / 447.5 MB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003191/0.1122, allocations: 193.6 kB / 447.7 MB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.1123, allocations: 4 kB / 447.7 MB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.731e-05/0.1123, allocations: 42.56 kB / 447.8 MB, free: 7.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.503e-06/0.1123, allocations: 0 / 447.8 MB, free: 7.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001099/0.1134, allocations: 0.5598 MB / 448.3 MB, free: 6.773 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/0.1135, allocations: 110.8 kB / 448.4 MB, free: 6.641 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000549/0.114, allocations: 0.5431 MB / 449 MB, free: 6.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.1141, allocations: 33.7 kB / 449 MB, free: 6.051 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.1143, allocations: 376 kB / 449.4 MB, free: 5.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.1144, allocations: 153.8 kB / 449.5 MB, free: 5.527 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.249e-05/0.1145, allocations: 8 kB / 449.5 MB, free: 5.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1146, allocations: 378.8 kB / 449.9 MB, free: 5.141 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003773/0.115, allocations: 185.2 kB / 450.1 MB, free: 4.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004867/0.1155, allocations: 409 kB / 450.5 MB, free: 4.465 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000436/0.1159, allocations: 244.5 kB / 450.7 MB, free: 4.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.1159, allocations: 0 / 450.7 MB, free: 4.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001075/0.117, allocations: 0.6725 MB / 451.4 MB, free: 3.547 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.1172, allocations: 282 kB / 451.7 MB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.1172, allocations: 7.984 kB / 451.7 MB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1172, allocations: 12 kB / 451.7 MB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.1177, allocations: 151.8 kB / 451.9 MB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.1178, allocations: 11.94 kB / 451.9 MB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003384/0.1181, allocations: 79.34 kB / 451.9 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.465e-05/0.1182, allocations: 28 kB / 452 MB, free: 2.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.352e-06/0.1182, allocations: 4 kB / 452 MB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009001/0.1191, allocations: 0.55 MB / 452.5 MB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.1191, allocations: 8.688 kB / 452.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.1191, allocations: 15.95 kB / 452.5 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004488/0.1196, allocations: 135.8 kB / 452.7 MB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.1196, allocations: 15.94 kB / 452.7 MB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002997/0.1199, allocations: 59.52 kB / 452.8 MB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/0.1199, allocations: 32 kB / 452.8 MB, free: 2.074 MB / 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.0002393/0.1202, allocations: 276.9 kB / 453.1 MB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.1203, allocations: 67.16 kB / 453.1 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.1204, allocations: 78.14 kB / 453.2 MB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1205, allocations: 7.953 kB / 453.2 MB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.1205, allocations: 0 / 453.2 MB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1205, allocations: 7.938 kB / 453.2 MB, free: 1.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006759/0.1212, allocations: 0.5674 MB / 453.8 MB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1212, allocations: 0 / 453.8 MB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004457/0.1216, allocations: 95.88 kB / 453.9 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.1216, allocations: 4 kB / 453.9 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.1217, allocations: 12 kB / 453.9 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.1217, allocations: 0 / 453.9 MB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1217, allocations: 3.953 kB / 453.9 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.1228, allocations: 0.8113 MB / 454.7 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1557/0.2785, allocations: 166.9 kB / 454.9 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.724e-05/0.2786, allocations: 9.375 kB / 454.9 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003319/0.2789, allocations: 35.38 kB / 454.9 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.104e-05/0.279, allocations: 34.81 kB / 454.9 MB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.279, allocations: 8.094 kB / 455 MB, free: 49.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003593/0.2794, allocations: 372 kB / 455.3 MB, free: 49.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2794, allocations: 0 / 455.3 MB, free: 49.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007971/0.2802, allocations: 246.8 kB / 455.6 MB, free: 49.72 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 9.882e-05/0.2803, allocations: 102.8 kB / 455.7 MB, free: 49.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.2815, allocations: 0.7417 MB / 456.4 MB, free: 49.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2815, allocations: 3.281 kB / 456.4 MB, free: 49.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002996/0.2818, allocations: 201.6 kB / 456.6 MB, free: 49.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008153/0.2826, allocations: 157.3 kB / 456.8 MB, free: 49.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.2842, allocations: 1.688 MB / 458.4 MB, free: 48.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.2845, allocations: 0.9094 MB / 459.4 MB, free: 48.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002833/0.2848, allocations: 78.83 kB / 459.4 MB, free: 48.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.2849, allocations: 44.94 kB / 459.5 MB, free: 48.07 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2849, allocations: 0 / 459.5 MB, free: 48.07 MB / 382.1 MB Notification: Performance of Templates: time 0.008/0.2929, allocations: 5.746 MB / 465.2 MB, free: 47.71 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: