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.0008171/0.0008175, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00471/0.00471, allocations: 169 kB / 16.26 MB, free: 6.652 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.545/1.545, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.3361/0.3361, allocations: 38.03 MB / 308.8 MB, free: 10.35 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.0006443/0.0006448, allocations: 16 kB / 377 MB, free: 14.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1234, allocations: 57.51 MB / 434.6 MB, free: 5.203 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004568/0.128, allocations: 3.596 MB / 438.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002992/0.131, allocations: 1.247 MB / 439.4 MB, free: 332 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009085/0.132, allocations: 19.88 kB / 439.4 MB, free: 312 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004963/0.1325, allocations: 79.23 kB / 439.5 MB, free: 232 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.1337, allocations: 150.9 kB / 439.6 MB, free: 80 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.1351, allocations: 351.6 kB / 440 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001757/0.1369, allocations: 0.7954 MB / 440.8 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007126/0.1376, allocations: 268.4 kB / 441 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007953/0.1384, allocations: 250.6 kB / 441.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005913/0.139, allocations: 278.2 kB / 441.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.1392, allocations: 20 kB / 441.6 MB, free: 14.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.525e-05/0.1393, allocations: 24 kB / 441.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.86e-05/0.1394, allocations: 103.4 kB / 441.7 MB, free: 14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003803/0.1398, allocations: 319.6 kB / 442 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00082/0.1406, allocations: 0.6963 MB / 442.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1406, allocations: 3.938 kB / 442.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1406, allocations: 0 / 442.7 MB, free: 12.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.344e-05/0.1406, allocations: 0 / 442.7 MB, free: 12.97 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.001979/0.1426, allocations: 0.9504 MB / 443.7 MB, free: 11.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.1427, allocations: 12.03 kB / 443.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002195/0.1429, allocations: 87.91 kB / 443.8 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008171/0.1437, allocations: 0.5032 MB / 444.3 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.734e-05/0.1438, allocations: 41.69 kB / 444.3 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.1439, allocations: 72.25 kB / 444.4 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.1449, allocations: 0.6195 MB / 445 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.145, allocations: 7.938 kB / 445 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.603e-05/0.145, allocations: 20 kB / 445 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.145, allocations: 12 kB / 445 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007149/0.1457, allocations: 402.2 kB / 445.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003587/0.1493, allocations: 3.036 MB / 448.5 MB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009193/0.1503, allocations: 465.7 kB / 448.9 MB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003392/0.1506, allocations: 177.6 kB / 449.1 MB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.1507, allocations: 12.09 kB / 449.1 MB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.1507, allocations: 34.5 kB / 449.1 MB, free: 6.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=39): time 1.764e-06/0.1507, allocations: 4 kB / 449.1 MB, free: 6.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001213/0.1519, allocations: 0.5792 MB / 449.7 MB, free: 5.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.152, allocations: 114.8 kB / 449.8 MB, free: 5.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005709/0.1526, allocations: 0.547 MB / 450.4 MB, free: 4.934 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.1526, allocations: 33.7 kB / 450.4 MB, free: 4.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.1529, allocations: 372 kB / 450.8 MB, free: 4.527 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.153, allocations: 153.8 kB / 450.9 MB, free: 4.375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.042e-05/0.1531, allocations: 61.69 kB / 451 MB, free: 4.309 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.1532, allocations: 374.8 kB / 451.4 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.1536, allocations: 189.2 kB / 451.5 MB, free: 3.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005133/0.1542, allocations: 413 kB / 451.9 MB, free: 3.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008888/0.1551, allocations: 0.5917 MB / 452.5 MB, free: 2.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.1551, allocations: 0 / 452.5 MB, free: 2.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001132/0.1562, allocations: 0.6837 MB / 453.2 MB, free: 1.875 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001892/0.1564, allocations: 289.8 kB / 453.5 MB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.1564, allocations: 8 kB / 453.5 MB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.1565, allocations: 8 kB / 453.5 MB, free: 1.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005285/0.157, allocations: 151.7 kB / 453.7 MB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-05/0.157, allocations: 8 kB / 453.7 MB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.1574, allocations: 75.36 kB / 453.7 MB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.1575, allocations: 31.98 kB / 453.8 MB, free: 1.219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.805e-06/0.1575, allocations: 4 kB / 453.8 MB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009442/0.1584, allocations: 0.5422 MB / 454.3 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1585, allocations: 12.61 kB / 454.3 MB, free: 0.6602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.1585, allocations: 19.98 kB / 454.4 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004463/0.1589, allocations: 139.8 kB / 454.5 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.159, allocations: 11.94 kB / 454.5 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.1593, allocations: 59.52 kB / 454.6 MB, free: 444 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.1594, allocations: 32 kB / 454.6 MB, free: 412 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002843/0.1596, allocations: 276.9 kB / 454.9 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.1598, allocations: 67.16 kB / 454.9 MB, free: 56 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2251/0.3849, allocations: 68.22 kB / 455 MB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.3849, allocations: 4.219 kB / 455 MB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.3849, allocations: 2.938 kB / 455 MB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.189e-05/0.385, allocations: 5.812 kB / 455 MB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.386, allocations: 0.5676 MB / 455.6 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.386, allocations: 0 / 455.6 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004739/0.3865, allocations: 97.16 kB / 455.7 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.3865, allocations: 3.062 kB / 455.7 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.3865, allocations: 10.19 kB / 455.7 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.3865, allocations: 6.562 kB / 455.7 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3865, allocations: 0 / 455.7 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.3877, allocations: 0.8149 MB / 456.5 MB, free: 49.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.3879, allocations: 168 kB / 456.7 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.532e-05/0.3879, allocations: 13.03 kB / 456.7 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003201/0.3883, allocations: 36.77 kB / 456.7 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.3883, allocations: 34.8 kB / 456.8 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.3884, allocations: 10.81 kB / 456.8 MB, free: 49.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003597/0.3887, allocations: 375.1 kB / 457.1 MB, free: 49.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3887, allocations: 0 / 457.1 MB, free: 49.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008983/0.3896, allocations: 241.9 kB / 457.4 MB, free: 49.46 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 (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.0001224/0.3898, allocations: 108.3 kB / 457.5 MB, free: 49.38 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.3911, allocations: 0.7575 MB / 458.2 MB, free: 49.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3911, allocations: 0 / 458.2 MB, free: 49.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003304/0.3914, allocations: 201.3 kB / 458.4 MB, free: 49.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009962/0.3924, allocations: 170.9 kB / 458.6 MB, free: 49.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.3944, allocations: 1.76 MB / 460.4 MB, free: 48.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.3948, allocations: 0.9138 MB / 461.3 MB, free: 47.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000331/0.3951, allocations: 75.33 kB / 461.3 MB, free: 47.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.3952, allocations: 44.52 kB / 461.4 MB, free: 47.69 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3952, allocations: 0 / 461.4 MB, free: 47.69 MB / 382.1 MB Notification: Performance of Templates: time 0.0104/0.4056, allocations: 5.94 MB / 467.3 MB, free: 47.32 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: