Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") translateModel(HanserModelica.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008725/0.0008724, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.496/1.496, allocations: 223.3 MB / 239.4 MB, free: 5.512 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.001675/0.001675, allocations: 180.5 kB / 290.6 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03271/0.03271, allocations: 8.807 MB / 350.5 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000391/0.0003904, allocations: 11.72 kB / 413.8 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1132, allocations: 52.56 MB / 466.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01608/0.1293, allocations: 15.75 MB / 482.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01062/0.14, allocations: 5.333 MB / 487.5 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00323/0.1432, allocations: 95.62 kB / 487.6 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003607/0.1469, allocations: 1.108 MB / 488.7 MB, free: 6.75 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005233/0.1521, allocations: 1.449 MB / 490.1 MB, free: 5.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002727/0.1549, allocations: 0.9511 MB / 491.1 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007383/0.1623, allocations: 5.293 MB / 496.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004874/0.1672, allocations: 3.625 MB / 500 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002756/0.1699, allocations: 1.602 MB / 0.4898 GB, free: 9.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003321/0.1733, allocations: 2.139 MB / 0.4919 GB, free: 7.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007257/0.174, allocations: 260 kB / 0.4922 GB, free: 7.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001543/0.1756, allocations: 479.7 kB / 0.4926 GB, free: 6.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008961/0.1765, allocations: 0.9922 MB / 0.4936 GB, free: 5.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002742/0.1792, allocations: 2.19 MB / 0.4957 GB, free: 3.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008482/0.1877, allocations: 7.583 MB / 0.5031 GB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.1878, allocations: 8 kB / 0.5031 GB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1878, allocations: 0 / 0.5031 GB, free: 12.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002777/0.1881, allocations: 0 / 0.5031 GB, free: 12.02 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01266/0.2008, allocations: 4.569 MB / 0.5076 GB, free: 7.375 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.2008, allocations: 11.97 kB / 0.5076 GB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00599/0.2068, allocations: 0.9948 MB / 0.5086 GB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006291/0.2131, allocations: 2.862 MB / 0.5114 GB, free: 3.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002891/0.2135, allocations: 308.6 kB / 0.5117 GB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009114/0.2144, allocations: 403.8 kB / 0.5121 GB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.2245, allocations: 5.24 MB / 0.5172 GB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.433e-05/0.2246, allocations: 0 / 0.5172 GB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003621/0.225, allocations: 164 kB / 0.5173 GB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.2251, allocations: 172 kB / 0.5175 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/0.2355, allocations: 4.509 MB / 0.5219 GB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2485/0.484, allocations: 16.95 MB / 0.5385 GB, free: 54.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006529/0.4906, allocations: 8.458 MB / 0.5467 GB, free: 48.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003235/0.4939, allocations: 1.725 MB / 0.5484 GB, free: 48.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008618/0.5025, allocations: 5.038 MB / 0.5533 GB, free: 47.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.5026, allocations: 56.06 kB / 0.5534 GB, free: 47.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.547e-06/0.5026, allocations: 0 / 0.5534 GB, free: 47.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01168/0.5143, allocations: 6.277 MB / 0.5595 GB, free: 44.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.5143, allocations: 76.36 kB / 0.5596 GB, free: 44.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.5172, allocations: 2.308 MB / 0.5618 GB, free: 42.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001297/0.5174, allocations: 51.61 kB / 0.5619 GB, free: 42.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009126/0.5183, allocations: 1.855 MB / 0.5637 GB, free: 41.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000355/0.5187, allocations: 0.5518 MB / 0.5642 GB, free: 40.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/0.5189, allocations: 176.7 kB / 0.5644 GB, free: 40.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.357e-05/0.5189, allocations: 309.1 kB / 0.5647 GB, free: 40.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.5202, allocations: 0.8596 MB / 0.5655 GB, free: 39.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.5217, allocations: 1.587 MB / 0.5671 GB, free: 38.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002778/0.5245, allocations: 2.602 MB / 0.5696 GB, free: 36.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/0.5245, allocations: 7.812 kB / 0.5696 GB, free: 36.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.004243/0.5288, allocations: 2.925 MB / 0.5725 GB, free: 35.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.5288, allocations: 17.88 kB / 0.5725 GB, free: 35.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.5289, allocations: 25.59 kB / 0.5725 GB, free: 35.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003101/0.5292, allocations: 126.8 kB / 0.5726 GB, free: 35.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.5309, allocations: 0.5516 MB / 0.5732 GB, free: 34.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001261/0.5322, allocations: 1.837 MB / 0.575 GB, free: 33.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.5341, allocations: 118.8 kB / 0.5751 GB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/0.5342, allocations: 97.94 kB / 0.5752 GB, free: 33.11 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (270): * Single equations (assignments): 268 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002076/0.5363, allocations: 1.206 MB / 0.5764 GB, free: 32.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003999/0.5367, allocations: 243.6 kB / 0.5766 GB, free: 32.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003744/0.5405, allocations: 2.505 MB / 0.579 GB, free: 30.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.5405, allocations: 20 kB / 0.5791 GB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.5405, allocations: 8 kB / 0.5791 GB, free: 30.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.5405, allocations: 7.969 kB / 0.5791 GB, free: 30.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007926/0.5485, allocations: 5.859 MB / 0.5848 GB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.5485, allocations: 0 / 0.5848 GB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.5497, allocations: 303.8 kB / 0.5851 GB, free: 23.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007419/0.5504, allocations: 322 kB / 0.5854 GB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.243e-05/0.5505, allocations: 39.98 kB / 0.5854 GB, free: 23.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004875/0.5554, allocations: 6.421 MB / 0.5917 GB, free: 16.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5554, allocations: 0 / 0.5917 GB, free: 16.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004956/0.5604, allocations: 3.635 MB / 0.5953 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/0.5614, allocations: 0.498 MB / 0.5957 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002731/0.5617, allocations: 36 kB / 0.5958 GB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.5628, allocations: 95.92 kB / 0.5959 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002627/0.5631, allocations: 121 kB / 0.596 GB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.241e-05/0.5632, allocations: 47.05 kB / 0.596 GB, free: 12.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002016/0.5652, allocations: 1.576 MB / 0.5976 GB, free: 10.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5652, allocations: 0 / 0.5976 GB, free: 10.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002086/0.5673, allocations: 0.6734 MB / 0.5982 GB, free: 9.984 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,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,mechanicalSensor.flange_a.phi) * 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 (133): * Single equations (assignments): 130 * 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,5,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.0003037/0.5676, allocations: 172.9 kB / 0.5984 GB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.5708, allocations: 2.316 MB / 0.6006 GB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5708, allocations: 0 / 0.6006 GB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.5726, allocations: 1.474 MB / 0.6021 GB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003031/0.5756, allocations: 0.5595 MB / 0.6026 GB, free: 5.398 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.5868, allocations: 8.787 MB / 0.6112 GB, free: 12.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002534/0.5894, allocations: 2.663 MB / 0.6138 GB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002216/0.5916, allocations: 0.5552 MB / 0.6144 GB, free: 9.328 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00049/0.5921, allocations: 167.4 kB / 0.6145 GB, free: 9.164 MB / 382.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5921, allocations: 0 / 0.6145 GB, free: 9.164 MB / 382.1 MB Notification: Performance of Templates: time 0.05545/0.6476, allocations: 31.02 MB / 0.6448 GB, free: 10.43 MB / 414.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1) Environment - environmentSimulation: