Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.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_ShortCircuit3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004372/0.004371, allocations: 100.8 kB / 15.73 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.255/1.255, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001138/0.001138, allocations: 192.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03306/0.03306, allocations: 8.795 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 75.88 kB / 464 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08132/0.08267, allocations: 51.58 MB / 0.5035 GB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01505/0.09774, allocations: 15.92 MB / 0.519 GB, free: 9.422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008276/0.1061, allocations: 5.29 MB / 0.5242 GB, free: 4.117 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001637/0.1077, allocations: 99.56 kB / 0.5243 GB, free: 4.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00257/0.1103, allocations: 1.219 MB / 0.5255 GB, free: 2.789 MB / 366.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.003605/0.1139, allocations: 1.53 MB / 0.527 GB, free: 1.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.1159, allocations: 0.991 MB / 0.5279 GB, free: 268 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1867/0.3026, allocations: 4.581 MB / 0.5324 GB, free: 6.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004951/0.3076, allocations: 3.493 MB / 0.5358 GB, free: 5.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004365/0.312, allocations: 2.049 MB / 0.5378 GB, free: 5.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004483/0.3165, allocations: 2.328 MB / 0.5401 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0014/0.3179, allocations: 0.5603 MB / 0.5406 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002331/0.3203, allocations: 0.7686 MB / 0.5414 GB, free: 4.906 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.3216, allocations: 1.241 MB / 0.5426 GB, free: 4.758 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004421/0.326, allocations: 2.376 MB / 0.5449 GB, free: 4.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009778/0.3358, allocations: 7.337 MB / 0.5521 GB, free: 3.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.3359, allocations: 0 / 0.5521 GB, free: 3.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3359, allocations: 8.719 kB / 0.5521 GB, free: 3.145 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002271/0.3361, allocations: 0 / 0.5521 GB, free: 3.145 MB / 366.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.01356/0.3497, allocations: 4.931 MB / 0.5569 GB, free: 92 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3498, allocations: 10.06 kB / 0.5569 GB, free: 92 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005093/0.3549, allocations: 0.9629 MB / 0.5579 GB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00576/0.3606, allocations: 2.756 MB / 0.5605 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.3609, allocations: 275.9 kB / 0.5608 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007404/0.3616, allocations: 362.5 kB / 0.5612 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008504/0.3701, allocations: 4.682 MB / 0.5657 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.981e-05/0.3702, allocations: 11 kB / 0.5657 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003394/0.3706, allocations: 153.2 kB / 0.5659 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.3707, allocations: 155.7 kB / 0.566 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006341/0.377, allocations: 3.902 MB / 0.5698 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02341/0.4005, allocations: 15.38 MB / 0.5849 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00549/0.406, allocations: 6.058 MB / 0.5908 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002147/0.4082, allocations: 1.386 MB / 0.5921 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007236/0.4154, allocations: 4.196 MB / 0.5962 GB, free: 11.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.4155, allocations: 51.56 kB / 0.5963 GB, free: 11.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=133): time 3.206e-06/0.4155, allocations: 0 / 0.5963 GB, free: 11.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01041/0.4259, allocations: 5.193 MB / 0.6013 GB, free: 6.379 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.426, allocations: 68.09 kB / 0.6014 GB, free: 6.305 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003702/0.4297, allocations: 1.989 MB / 0.6034 GB, free: 4.277 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.4299, allocations: 53.7 kB / 0.6034 GB, free: 4.219 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001256/0.4311, allocations: 1.713 MB / 0.6051 GB, free: 2.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004565/0.4316, allocations: 0.493 MB / 0.6056 GB, free: 2.012 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005866/0.4322, allocations: 363.4 kB / 0.6059 GB, free: 1.652 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.76e-05/0.4323, allocations: 301.1 kB / 0.6062 GB, free: 1.355 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.4334, allocations: 0.6637 MB / 0.6068 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.4349, allocations: 1.377 MB / 0.6082 GB, free: 15 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/0.4376, allocations: 2.19 MB / 0.6103 GB, free: 12.58 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.715e-05/0.4376, allocations: 8.844 kB / 0.6103 GB, free: 12.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.003942/0.4416, allocations: 2.49 MB / 0.6128 GB, free: 10.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.4416, allocations: 20.03 kB / 0.6128 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.478e-05/0.4417, allocations: 20 kB / 0.6128 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003669/0.442, allocations: 153 kB / 0.613 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/0.4436, allocations: 463.3 kB / 0.6134 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002007/0.4456, allocations: 2.12 MB / 0.6155 GB, free: 7.355 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/0.4473, allocations: 87.92 kB / 0.6155 GB, free: 7.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001799/0.4475, allocations: 92 kB / 0.6156 GB, free: 7.18 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * 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 (242): * Single equations (assignments): 240 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002069/0.4496, allocations: 1.066 MB / 0.6167 GB, free: 6.133 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005505/0.4501, allocations: 226.5 kB / 0.6169 GB, free: 5.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003595/0.4538, allocations: 2.01 MB / 0.6189 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.4538, allocations: 19.92 kB / 0.6189 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/0.4538, allocations: 8 kB / 0.6189 GB, free: 3.828 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.4538, allocations: 3.984 kB / 0.6189 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009485/0.4633, allocations: 4.919 MB / 0.6237 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.4634, allocations: 0 / 0.6237 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008664/0.4642, allocations: 205.9 kB / 0.6239 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008377/0.4651, allocations: 326 kB / 0.6242 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.4652, allocations: 39.92 kB / 0.6242 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006887/0.4721, allocations: 7.091 MB / 0.6312 GB, free: 6.816 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.4722, allocations: 4.031 kB / 0.6312 GB, free: 6.812 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004353/0.4765, allocations: 2.904 MB / 0.634 GB, free: 3.844 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.4776, allocations: 439.6 kB / 0.6344 GB, free: 3.395 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006292/0.4782, allocations: 36.38 kB / 0.6345 GB, free: 3.359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.4795, allocations: 55.95 kB / 0.6345 GB, free: 3.305 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.4797, allocations: 103.5 kB / 0.6346 GB, free: 3.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.351e-05/0.4798, allocations: 39.98 kB / 0.6346 GB, free: 3.168 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00257/0.4824, allocations: 1.351 MB / 0.636 GB, free: 1.797 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4824, allocations: 0 / 0.636 GB, free: 1.797 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002721/0.4851, allocations: 0.5938 MB / 0.6365 GB, free: 1.203 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003544/0.4855, allocations: 171.9 kB / 0.6367 GB, free: 1.047 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003064/0.4885, allocations: 1.896 MB / 0.6386 GB, free: 15.19 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4886, allocations: 0 / 0.6386 GB, free: 15.19 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001714/0.4903, allocations: 1.22 MB / 0.6397 GB, free: 13.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.4927, allocations: 0.5642 MB / 0.6403 GB, free: 13.37 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009373/0.5021, allocations: 6.067 MB / 0.6462 GB, free: 7.25 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002004/0.5041, allocations: 2.402 MB / 0.6486 GB, free: 4.816 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001432/0.5055, allocations: 470.7 kB / 0.649 GB, free: 4.352 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003503/0.5059, allocations: 139.4 kB / 0.6492 GB, free: 4.215 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5059, allocations: 0 / 0.6492 GB, free: 4.215 MB / 462.1 MB Notification: Performance of Templates: time 0.04682/0.5527, allocations: 29.52 MB / 0.678 GB, free: 7.027 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)