Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001996/0.001996, allocations: 105.6 kB / 17.06 MB, free: 6.023 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.002348/0.002347, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.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.002293/0.002294, allocations: 51.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.2004, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.3479/0.5484, allocations: 8.175 MB / 382.7 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006776/0.5552, allocations: 2.733 MB / 385.4 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/0.5572, allocations: 23.84 kB / 385.4 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002346/0.5596, allocations: 0.5595 MB / 386 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002607/0.5622, allocations: 483.2 kB / 386.4 MB, free: 7.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009133/0.5631, allocations: 259.9 kB / 386.7 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002588/0.5657, allocations: 1.502 MB / 388.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.5669, allocations: 0.577 MB / 388.8 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.5689, allocations: 0.5682 MB / 389.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.5704, allocations: 0.6175 MB / 390 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000322/0.5707, allocations: 139.4 kB / 390.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007268/0.5714, allocations: 185.5 kB / 390.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003284/0.5718, allocations: 284.6 kB / 390.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001099/0.5729, allocations: 0.6749 MB / 391.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003907/0.5768, allocations: 1.752 MB / 393 MB, free: 3.922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.5768, allocations: 0 / 393 MB, free: 3.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5768, allocations: 0 / 393 MB, free: 3.922 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.289e-05/0.5769, allocations: 1.281 kB / 393 MB, free: 3.922 MB / 318.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.003905/0.5808, allocations: 1.476 MB / 394.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.363e-05/0.5809, allocations: 11.89 kB / 394.5 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009612/0.5819, allocations: 187.8 kB / 394.7 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002068/0.5839, allocations: 0.7643 MB / 395.4 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-05/0.5841, allocations: 74.55 kB / 395.5 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001851/0.5842, allocations: 96.16 kB / 395.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002321/0.5866, allocations: 0.9455 MB / 396.5 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-05/0.5866, allocations: 11.25 kB / 396.5 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.904e-05/0.5867, allocations: 40.75 kB / 396.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.299e-05/0.5868, allocations: 24.03 kB / 396.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.5883, allocations: 0.6468 MB / 397.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006861/0.5952, allocations: 3.911 MB / 401.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008232/0.5961, allocations: 443.5 kB / 401.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006944/0.5968, allocations: 291.5 kB / 401.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.422e-05/0.5968, allocations: 8.109 kB / 401.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.5969, allocations: 41.31 kB / 401.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.955e-06/0.5969, allocations: 1.375 kB / 401.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003899/0.6008, allocations: 1.543 MB / 403.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.6009, allocations: 82.05 kB / 403.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/0.6023, allocations: 0.8379 MB / 404.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.403e-05/0.6023, allocations: 35.89 kB / 404.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004805/0.6028, allocations: 0.5676 MB / 405 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.603, allocations: 158.2 kB / 405.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.6032, allocations: 133.3 kB / 405.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.6034, allocations: 332.7 kB / 405.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/0.6038, allocations: 179.7 kB / 405.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006724/0.6045, allocations: 475.6 kB / 406.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.6056, allocations: 0.6799 MB / 406.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/0.6056, allocations: 6.094 kB / 406.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001702/0.6073, allocations: 0.7891 MB / 407.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.6074, allocations: 9.188 kB / 407.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.6074, allocations: 9.625 kB / 407.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003208/0.6077, allocations: 87.19 kB / 407.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005418/0.6083, allocations: 159.3 kB / 408 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/0.6111, allocations: 3.143 MB / 411.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008797/0.612, allocations: 41.66 kB / 411.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.361e-05/0.612, allocations: 36.22 kB / 411.2 MB, free: 6.832 MB / 334.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005756/0.6126, allocations: 265.3 kB / 411.5 MB, free: 6.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000169/0.6128, allocations: 89.97 kB / 411.5 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001095/0.6139, allocations: 0.4983 MB / 412 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.6139, allocations: 11.98 kB / 412.1 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.6139, allocations: 2 kB / 412.1 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.6139, allocations: 0 / 412.1 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002582/0.6165, allocations: 1.47 MB / 413.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.6165, allocations: 2.969 kB / 413.5 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003523/0.6169, allocations: 76.17 kB / 413.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002443/0.6172, allocations: 72.17 kB / 413.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.6172, allocations: 12.44 kB / 413.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002894/0.6201, allocations: 3.127 MB / 416.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.6201, allocations: 2.5 kB / 416.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.6218, allocations: 0.8031 MB / 417.6 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004593/0.6223, allocations: 202 kB / 417.8 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.943e-05/0.6224, allocations: 16.72 kB / 417.8 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004421/0.6229, allocations: 27.44 kB / 417.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.623, allocations: 39.27 kB / 417.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.623, allocations: 10.44 kB / 417.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00087/0.6239, allocations: 0.5732 MB / 418.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6239, allocations: 0 / 418.5 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001109/0.625, allocations: 204.6 kB / 418.7 MB, free: 0.8086 MB / 334.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003087/0.6253, allocations: 135.9 kB / 418.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001557/0.6269, allocations: 0.7088 MB / 419.5 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.6269, allocations: 1.344 kB / 419.5 MB, free: 240 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007077/0.6276, allocations: 451.1 kB / 420 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.6288, allocations: 238.9 kB / 420.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/0.6322, allocations: 1.735 MB / 421.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006305/0.6328, allocations: 1.009 MB / 422.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004447/0.6333, allocations: 111.3 kB / 423.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.6334, allocations: 55.44 kB / 423.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6334, allocations: 0 / 423.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of Templates: time 0.02781/0.6612, allocations: 11.09 MB / 434.2 MB, free: 2.336 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)