Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001074/0.001074, allocations: 197.1 kB / 8.139 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.08/1.08, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001791/0.001791, allocations: 124.7 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.901e-06/5.931e-06, allocations: 0 / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06994/0.06996, allocations: 44.49 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.2767, allocations: 89.45 MB / 431.5 MB, free: 5.797 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.2769, allocations: 86.75 kB / 431.6 MB, free: 5.754 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1197/0.3966, allocations: 43.93 MB / 475.5 MB, free: 1.285 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001037/0.3968, allocations: 39.94 kB / 475.6 MB, free: 1.246 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003118/0.3999, allocations: 1.627 MB / 477.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3999, allocations: 8.031 kB / 477.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.4011, allocations: 297.4 kB / 477.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/0.4037, allocations: 1.212 MB / 478.7 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.337e-05/0.4038, allocations: 48 kB / 478.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000213/0.404, allocations: 103.9 kB / 478.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001944/0.4059, allocations: 0.8731 MB / 479.7 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00216/0.4081, allocations: 1.209 MB / 480.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-05/0.4082, allocations: 7.906 kB / 480.9 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.981e-05/0.4083, allocations: 4 kB / 480.9 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.319e-05/0.4083, allocations: 39.91 kB / 481 MB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008186/0.4165, allocations: 6.137 MB / 487.1 MB, free: 5.223 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005041/0.417, allocations: 315 kB / 487.4 MB, free: 4.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000733/0.4178, allocations: 403.3 kB / 487.8 MB, free: 4.512 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.16e-05/0.4179, allocations: 8.656 kB / 487.8 MB, free: 4.504 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.4179, allocations: 47.16 kB / 487.9 MB, free: 4.445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=66): time 2.314e-06/0.4179, allocations: 0 / 487.9 MB, free: 4.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=72): time 0.003188/0.4211, allocations: 1.661 MB / 489.5 MB, free: 2.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.54e-05/0.4212, allocations: 115.5 kB / 489.6 MB, free: 2.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.4225, allocations: 0.8936 MB / 490.5 MB, free: 1.688 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.4226, allocations: 25.7 kB / 490.6 MB, free: 1.656 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004304/0.423, allocations: 0.6878 MB / 491.3 MB, free: 0.957 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.4232, allocations: 248.3 kB / 491.5 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.583e-05/0.4232, allocations: 0 / 491.5 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.4234, allocations: 357.9 kB / 491.8 MB, free: 364 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/0.4238, allocations: 222.6 kB / 492.1 MB, free: 144 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007386/0.4246, allocations: 0.6697 MB / 492.7 MB, free: 15.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005895/0.4252, allocations: 346.9 kB / 493.1 MB, free: 14.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.4252, allocations: 4 kB / 493.1 MB, free: 14.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002025/0.4272, allocations: 1.067 MB / 494.1 MB, free: 13.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.4272, allocations: 7.906 kB / 494.1 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-05/0.4273, allocations: 16.59 kB / 494.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004088/0.4277, allocations: 114.5 kB / 494.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.4287, allocations: 275.5 kB / 494.5 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/0.4321, allocations: 4.037 MB / 498.6 MB, free: 9.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.4331, allocations: 47.94 kB / 498.6 MB, free: 8.977 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.483e-05/0.4332, allocations: 52 kB / 498.7 MB, free: 8.926 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002051/0.4335, allocations: 148.3 kB / 498.8 MB, free: 8.773 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.4336, allocations: 130.4 kB / 499 MB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001533/0.4352, allocations: 0.71 MB / 499.7 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.4352, allocations: 8 kB / 499.7 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4352, allocations: 0 / 499.7 MB, free: 7.902 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4352, allocations: 11.89 kB / 499.7 MB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003655/0.4389, allocations: 2.007 MB / 0.4899 GB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.4389, allocations: 4.469 kB / 0.4899 GB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006881/0.4396, allocations: 139.7 kB / 0.4901 GB, free: 5.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003759/0.44, allocations: 122.4 kB / 0.4902 GB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-05/0.4401, allocations: 8 kB / 0.4902 GB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.4437, allocations: 4.142 MB / 0.4942 GB, free: 1.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.4437, allocations: 8.062 kB / 0.4942 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00202/0.4457, allocations: 1.366 MB / 0.4956 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004583/0.4462, allocations: 259.4 kB / 0.4958 GB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002188/0.4464, allocations: 12.17 kB / 0.4958 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/0.4472, allocations: 39.97 kB / 0.4959 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.4473, allocations: 44.44 kB / 0.4959 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-05/0.4473, allocations: 23.91 kB / 0.4959 GB, free: 15.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000968/0.4483, allocations: 0.6556 MB / 0.4966 GB, free: 14.45 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001234/0.4495, allocations: 312 kB / 0.4969 GB, free: 14.15 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004879/0.45, allocations: 341.7 kB / 0.4972 GB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.4516, allocations: 0.9711 MB / 0.4982 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4516, allocations: 0 / 0.4982 GB, free: 12.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008121/0.4524, allocations: 0.5941 MB / 0.4987 GB, free: 12.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.4538, allocations: 277.8 kB / 0.499 GB, free: 11.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005195/0.459, allocations: 2.296 MB / 0.5012 GB, free: 9.543 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001199/0.4602, allocations: 1.345 MB / 0.5026 GB, free: 8.172 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4602, allocations: 0 / 0.5026 GB, free: 8.172 MB / 394.7 MB Notification: Performance of Templates: time 0.1291/0.5893, allocations: 15.2 MB / 0.5174 GB, free: 138.4 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)