Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001118/0.001118, allocations: 168.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.907/1.907, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.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.0004679/0.0004681, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2678, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009949/0.2779, allocations: 7.201 MB / 333.7 MB, free: 11.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005313/0.2832, allocations: 2.549 MB / 336.2 MB, free: 9.617 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001312/0.2846, allocations: 23.81 kB / 336.3 MB, free: 9.613 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001759/0.2864, allocations: 471.2 kB / 336.7 MB, free: 9.23 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001779/0.2882, allocations: 393.1 kB / 337.1 MB, free: 8.844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007508/0.2889, allocations: 163.8 kB / 337.3 MB, free: 8.684 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002259/0.2912, allocations: 1.358 MB / 338.6 MB, free: 7.32 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009579/0.2922, allocations: 431.2 kB / 339 MB, free: 6.883 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009056/0.2931, allocations: 454 kB / 339.5 MB, free: 6.438 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.2941, allocations: 0.5132 MB / 340 MB, free: 5.922 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002618/0.2944, allocations: 68 kB / 340.1 MB, free: 5.855 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005293/0.2949, allocations: 99.97 kB / 340.2 MB, free: 5.758 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002418/0.2952, allocations: 199 kB / 340.4 MB, free: 5.562 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005432/0.2957, allocations: 265.1 kB / 340.6 MB, free: 5.297 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00176/0.2975, allocations: 1.363 MB / 342 MB, free: 3.93 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.425e-06/0.2975, allocations: 4 kB / 342 MB, free: 3.926 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2975, allocations: 0 / 342 MB, free: 3.926 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.45e-05/0.2976, allocations: 0 / 342 MB, free: 3.926 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002798/0.3004, allocations: 1.297 MB / 343.3 MB, free: 2.574 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.016e-05/0.3005, allocations: 12.02 kB / 343.3 MB, free: 2.562 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008403/0.3013, allocations: 194.3 kB / 343.5 MB, free: 2.371 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001562/0.3029, allocations: 0.7193 MB / 344.2 MB, free: 1.609 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.261e-05/0.303, allocations: 70 kB / 344.3 MB, free: 1.543 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/0.3032, allocations: 103.9 kB / 344.4 MB, free: 1.441 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001946/0.3051, allocations: 0.9464 MB / 345.3 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.569e-05/0.3052, allocations: 0 / 345.3 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.807e-05/0.3052, allocations: 40 kB / 345.4 MB, free: 436 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.458e-05/0.3053, allocations: 24 kB / 345.4 MB, free: 412 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.3067, allocations: 0.6598 MB / 346 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006667/0.3134, allocations: 3.981 MB / 350 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009467/0.3144, allocations: 448.5 kB / 350.5 MB, free: 11.08 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006755/0.3151, allocations: 280.7 kB / 350.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.309e-05/0.3151, allocations: 4 kB / 350.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.502e-05/0.3152, allocations: 46.44 kB / 350.8 MB, free: 10.74 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 4.829e-06/0.3152, allocations: 0 / 350.8 MB, free: 10.74 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003418/0.3186, allocations: 1.568 MB / 352.4 MB, free: 9.082 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.367e-05/0.3187, allocations: 89.06 kB / 352.4 MB, free: 8.977 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.3201, allocations: 0.8293 MB / 353.3 MB, free: 8.137 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.3201, allocations: 37.7 kB / 353.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/0.3206, allocations: 0.5604 MB / 353.9 MB, free: 7.523 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.3208, allocations: 165.6 kB / 354 MB, free: 7.359 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/0.3208, allocations: 12 kB / 354 MB, free: 7.348 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.321, allocations: 334 kB / 354.4 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003595/0.3213, allocations: 181.8 kB / 354.5 MB, free: 6.84 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/0.3219, allocations: 471.6 kB / 355 MB, free: 6.246 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004827/0.3224, allocations: 255.8 kB / 355.3 MB, free: 5.996 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3224, allocations: 0 / 355.3 MB, free: 5.996 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001471/0.3239, allocations: 0.7985 MB / 356.1 MB, free: 5.184 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.3239, allocations: 8 kB / 356.1 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.211e-05/0.3239, allocations: 8 kB / 356.1 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002952/0.3242, allocations: 85.94 kB / 356.2 MB, free: 5.078 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005294/0.3248, allocations: 159.7 kB / 356.3 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.3273, allocations: 2.884 MB / 359.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006234/0.3279, allocations: 43.88 kB / 359.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-05/0.328, allocations: 36.06 kB / 359.3 MB, free: 1.688 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004759/0.3285, allocations: 261.6 kB / 359.5 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.3287, allocations: 86.97 kB / 359.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00105/0.3297, allocations: 0.5148 MB / 360.1 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.3297, allocations: 8.109 kB / 360.1 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3297, allocations: 4 kB / 360.1 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3298, allocations: 7.953 kB / 360.1 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.3322, allocations: 1.489 MB / 361.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.3322, allocations: 0 / 361.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003532/0.3325, allocations: 83.83 kB / 361.7 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/0.3328, allocations: 73.75 kB / 361.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.42e-05/0.3328, allocations: 12 kB / 361.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002296/0.3351, allocations: 2.856 MB / 364.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3351, allocations: 0 / 364.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.3367, allocations: 0.8204 MB / 365.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004327/0.3371, allocations: 196.1 kB / 365.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.3373, allocations: 12 kB / 365.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004856/0.3378, allocations: 35.97 kB / 365.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.3379, allocations: 31.95 kB / 365.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.338, allocations: 16 kB / 365.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009248/0.3389, allocations: 0.5693 MB / 366.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3389, allocations: 3.938 kB / 366.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001105/0.34, allocations: 216 kB / 366.5 MB, free: 9.965 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002869/0.3403, allocations: 119.1 kB / 366.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.3418, allocations: 0.7123 MB / 367.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3418, allocations: 0 / 367.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006902/0.3425, allocations: 459.1 kB / 367.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.3436, allocations: 211.3 kB / 368 MB, free: 8.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004283/0.3479, allocations: 2.134 MB / 370.2 MB, free: 6.238 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009924/0.349, allocations: 1.016 MB / 371.2 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005975/0.3496, allocations: 107.3 kB / 371.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.3497, allocations: 63.42 kB / 371.3 MB, free: 5.023 MB / 302.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3498, allocations: 0 / 371.3 MB, free: 5.023 MB / 302.1 MB Notification: Performance of Templates: time 0.02184/0.3716, allocations: 9.776 MB / 381.1 MB, free: 11.23 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)