Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.00154, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 222.9 MB / 239.2 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 188.4 kB / 289.5 MB, free: 2.301 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03464/0.03464, allocations: 8.796 MB / 348.5 MB, free: 4.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002352/0.002352, allocations: 80.14 kB / 411.1 MB, free: 42.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1071, allocations: 51.56 MB / 462.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01651/0.1237, allocations: 15.92 MB / 478.6 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009414/0.1331, allocations: 5.305 MB / 483.9 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001971/0.1351, allocations: 99.69 kB / 484 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002904/0.138, allocations: 1.208 MB / 485.2 MB, free: 7.719 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004288/0.1424, allocations: 1.537 MB / 486.7 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.1447, allocations: 0.9799 MB / 487.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007121/0.1518, allocations: 4.565 MB / 492.2 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004316/0.1562, allocations: 3.489 MB / 495.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003035/0.1592, allocations: 2.048 MB / 497.8 MB, free: 11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002925/0.1622, allocations: 2.327 MB / 0.4884 GB, free: 8.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008255/0.163, allocations: 0.5586 MB / 0.4889 GB, free: 8.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.1645, allocations: 0.781 MB / 0.4897 GB, free: 7.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009317/0.1655, allocations: 1.239 MB / 0.4909 GB, free: 6.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002217/0.1677, allocations: 2.377 MB / 0.4932 GB, free: 3.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005987/0.1737, allocations: 7.26 MB / 0.5003 GB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.1737, allocations: 0 / 0.5003 GB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1737, allocations: 0 / 0.5003 GB, free: 12.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001209/0.1738, allocations: 0 / 0.5003 GB, free: 12.41 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01056/0.1844, allocations: 4.822 MB / 0.505 GB, free: 7.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1845, allocations: 12.03 kB / 0.505 GB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004978/0.1894, allocations: 0.9445 MB / 0.506 GB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005339/0.1948, allocations: 2.663 MB / 0.5086 GB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002137/0.195, allocations: 279.8 kB / 0.5088 GB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006596/0.1957, allocations: 372 kB / 0.5092 GB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009958/0.2057, allocations: 4.68 MB / 0.5138 GB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/0.2058, allocations: 3.906 kB / 0.5138 GB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005502/0.2064, allocations: 148 kB / 0.5139 GB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002058/0.2066, allocations: 155.3 kB / 0.514 GB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01369/0.2203, allocations: 3.901 MB / 0.5179 GB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.218/0.4383, allocations: 15.48 MB / 0.533 GB, free: 57.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005165/0.4435, allocations: 6.124 MB / 0.539 GB, free: 52.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.446, allocations: 1.41 MB / 0.5403 GB, free: 52.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006491/0.4525, allocations: 4.251 MB / 0.5445 GB, free: 51.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.4526, allocations: 44.69 kB / 0.5445 GB, free: 51.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.807e-06/0.4526, allocations: 1.375 kB / 0.5445 GB, free: 51.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01202/0.4646, allocations: 6.121 MB / 0.5505 GB, free: 50.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.4647, allocations: 74.67 kB / 0.5506 GB, free: 50.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002807/0.4675, allocations: 2.069 MB / 0.5526 GB, free: 49.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/0.4676, allocations: 51.83 kB / 0.5526 GB, free: 49.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007008/0.4683, allocations: 1.698 MB / 0.5543 GB, free: 47.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/0.4686, allocations: 0.5355 MB / 0.5548 GB, free: 47.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004619/0.4691, allocations: 407.7 kB / 0.5552 GB, free: 47.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.283e-05/0.4691, allocations: 305.1 kB / 0.5555 GB, free: 47.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009915/0.4701, allocations: 0.7785 MB / 0.5563 GB, free: 46.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/0.4714, allocations: 1.543 MB / 0.5578 GB, free: 45.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01138/0.4828, allocations: 4.81 MB / 0.5625 GB, free: 42.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/0.4828, allocations: 10.41 kB / 0.5625 GB, free: 42.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.00377/0.4866, allocations: 2.877 MB / 0.5653 GB, free: 40.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.4866, allocations: 14.25 kB / 0.5653 GB, free: 40.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/0.4866, allocations: 26.31 kB / 0.5653 GB, free: 40.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007823/0.4874, allocations: 360.6 kB / 0.5657 GB, free: 40.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.4888, allocations: 485.2 kB / 0.5661 GB, free: 40.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003793/0.4926, allocations: 4.094 MB / 0.5701 GB, free: 37.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.4943, allocations: 96.19 kB / 0.5702 GB, free: 37.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.4944, allocations: 105.5 kB / 0.5703 GB, free: 37.09 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smee.is[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (256): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,23,68.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001449/0.4958, allocations: 1.093 MB / 0.5714 GB, free: 36.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/0.4961, allocations: 224.8 kB / 0.5716 GB, free: 36.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002764/0.4989, allocations: 1.993 MB / 0.5736 GB, free: 34.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.4989, allocations: 13.08 kB / 0.5736 GB, free: 34.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.499, allocations: 8 kB / 0.5736 GB, free: 34.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.499, allocations: 11.81 kB / 0.5736 GB, free: 34.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006439/0.5054, allocations: 5.449 MB / 0.5789 GB, free: 29.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.5054, allocations: 4 kB / 0.5789 GB, free: 29.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009869/0.5064, allocations: 259.7 kB / 0.5792 GB, free: 29.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006478/0.5071, allocations: 293.7 kB / 0.5794 GB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.901e-05/0.5072, allocations: 39.98 kB / 0.5795 GB, free: 28.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00343/0.5106, allocations: 3.83 MB / 0.5832 GB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5106, allocations: 3.938 kB / 0.5832 GB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003418/0.5141, allocations: 2.944 MB / 0.5861 GB, free: 21.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006851/0.5148, allocations: 466.3 kB / 0.5865 GB, free: 21.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002618/0.515, allocations: 32 kB / 0.5866 GB, free: 21.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009189/0.516, allocations: 55.97 kB / 0.5866 GB, free: 21.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.5161, allocations: 113.1 kB / 0.5867 GB, free: 21.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.758e-05/0.5162, allocations: 43.98 kB / 0.5868 GB, free: 21.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001516/0.5178, allocations: 1.394 MB / 0.5881 GB, free: 19.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5178, allocations: 0 / 0.5881 GB, free: 19.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001759/0.5195, allocations: 0.6328 MB / 0.5887 GB, free: 19.14 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,22,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002461/0.5198, allocations: 179.3 kB / 0.5889 GB, free: 18.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005015/0.5248, allocations: 2.728 MB / 0.5916 GB, free: 16.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.5248, allocations: 4 kB / 0.5916 GB, free: 16.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001397/0.5262, allocations: 1.08 MB / 0.5926 GB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/0.5285, allocations: 0.5777 MB / 0.5932 GB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008404/0.5369, allocations: 6.182 MB / 0.5992 GB, free: 8.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.5384, allocations: 2.439 MB / 0.6016 GB, free: 5.871 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001665/0.54, allocations: 0.4919 MB / 0.6021 GB, free: 5.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003459/0.5404, allocations: 155.4 kB / 0.6023 GB, free: 5.223 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5404, allocations: 0 / 0.6023 GB, free: 5.223 MB / 366.1 MB Notification: Performance of Templates: time 0.05195/0.5924, allocations: 31.42 MB / 0.6329 GB, free: 6.121 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)