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.0009817/0.0009817, allocations: 92.16 kB / 16.02 MB, free: 80 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.301/1.301, allocations: 223.3 MB / 240 MB, free: 5.473 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.0009801/0.0009801, allocations: 184.5 kB / 291.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0354/0.0354, allocations: 8.82 MB / 351.2 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004977/0.0004978, allocations: 14.02 kB / 414.5 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0763/0.07682, allocations: 52.56 MB / 467 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01512/0.09198, allocations: 15.76 MB / 482.8 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008662/0.1007, allocations: 5.333 MB / 488.1 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.1028, allocations: 95.62 kB / 488.2 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.1056, allocations: 1.108 MB / 489.3 MB, free: 6.711 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.00388/0.1095, allocations: 1.453 MB / 490.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.1115, allocations: 0.9468 MB / 491.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005283/0.1168, allocations: 5.295 MB / 497 MB, free: 15 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003916/0.1207, allocations: 3.622 MB / 0.4889 GB, free: 11.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001831/0.1226, allocations: 1.61 MB / 0.4905 GB, free: 9.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002127/0.1247, allocations: 2.139 MB / 0.4926 GB, free: 7.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000371/0.1251, allocations: 252 kB / 0.4928 GB, free: 7.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.1261, allocations: 483.7 kB / 0.4933 GB, free: 6.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00078/0.1269, allocations: 0.9922 MB / 0.4942 GB, free: 5.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.1287, allocations: 2.19 MB / 0.4964 GB, free: 3.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00492/0.1336, allocations: 6.607 MB / 0.5028 GB, free: 12.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1336, allocations: 4 kB / 0.5028 GB, free: 12.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1336, allocations: 0 / 0.5028 GB, free: 12.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.024e-05/0.1337, allocations: 0 / 0.5028 GB, free: 12.97 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.01034/0.1441, allocations: 4.571 MB / 0.5073 GB, free: 8.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1441, allocations: 8.031 kB / 0.5073 GB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005152/0.1493, allocations: 0.9948 MB / 0.5083 GB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00473/0.154, allocations: 2.859 MB / 0.5111 GB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002309/0.1543, allocations: 308.7 kB / 0.5114 GB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005726/0.1549, allocations: 403.8 kB / 0.5118 GB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008381/0.1632, allocations: 5.244 MB / 0.5169 GB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-05/0.1633, allocations: 0 / 0.5169 GB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003795/0.1637, allocations: 164 kB / 0.517 GB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001509/0.1639, allocations: 172 kB / 0.5172 GB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007649/0.1715, allocations: 4.505 MB / 0.5216 GB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1769/0.3484, allocations: 16.95 MB / 0.5381 GB, free: 54.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006381/0.3548, allocations: 8.463 MB / 0.5464 GB, free: 48.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002998/0.3578, allocations: 1.715 MB / 0.5481 GB, free: 48.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006989/0.3648, allocations: 5.042 MB / 0.553 GB, free: 46.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.471e-05/0.3649, allocations: 53.39 kB / 0.5531 GB, free: 46.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 2.835e-06/0.3649, allocations: 0 / 0.5531 GB, free: 46.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01058/0.3755, allocations: 6.278 MB / 0.5592 GB, free: 44.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.935e-05/0.3755, allocations: 72.2 kB / 0.5593 GB, free: 44.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/0.378, allocations: 2.31 MB / 0.5615 GB, free: 43.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.853e-05/0.3781, allocations: 53.55 kB / 0.5616 GB, free: 43.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007832/0.3789, allocations: 1.848 MB / 0.5634 GB, free: 41.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002852/0.3792, allocations: 0.5561 MB / 0.5639 GB, free: 41.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002104/0.3794, allocations: 178.1 kB / 0.5641 GB, free: 41.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.25e-05/0.3795, allocations: 306.2 kB / 0.5644 GB, free: 40.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.3808, allocations: 0.8686 MB / 0.5652 GB, free: 40.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.3823, allocations: 1.578 MB / 0.5668 GB, free: 38.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/0.3852, allocations: 2.605 MB / 0.5693 GB, free: 36.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3852, allocations: 7.594 kB / 0.5693 GB, free: 36.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.003809/0.389, allocations: 2.934 MB / 0.5722 GB, free: 35.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.3891, allocations: 17.28 kB / 0.5722 GB, free: 35.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/0.3891, allocations: 22.75 kB / 0.5722 GB, free: 35.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002707/0.3894, allocations: 124.6 kB / 0.5723 GB, free: 35.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.3912, allocations: 0.5523 MB / 0.5729 GB, free: 35.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.3924, allocations: 1.837 MB / 0.5747 GB, free: 33.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.3938, allocations: 118.9 kB / 0.5748 GB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.394, allocations: 98.61 kB / 0.5749 GB, free: 33.43 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.001347/0.3953, allocations: 1.197 MB / 0.576 GB, free: 32.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002636/0.3956, allocations: 253 kB / 0.5763 GB, free: 32.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0037/0.3993, allocations: 2.503 MB / 0.5787 GB, free: 30.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.3993, allocations: 18.38 kB / 0.5788 GB, free: 30.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3994, allocations: 7.688 kB / 0.5788 GB, free: 30.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.3994, allocations: 7.969 kB / 0.5788 GB, free: 30.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00735/0.4067, allocations: 5.859 MB / 0.5845 GB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.4067, allocations: 4 kB / 0.5845 GB, free: 25.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.408, allocations: 295.8 kB / 0.5848 GB, free: 24.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007481/0.4088, allocations: 318.2 kB / 0.5851 GB, free: 24.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.662e-05/0.4089, allocations: 39.98 kB / 0.5851 GB, free: 24.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004755/0.4136, allocations: 6.427 MB / 0.5914 GB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4136, allocations: 1.312 kB / 0.5914 GB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004651/0.4183, allocations: 3.635 MB / 0.5949 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006843/0.419, allocations: 0.498 MB / 0.5954 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002781/0.4193, allocations: 32 kB / 0.5955 GB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.4204, allocations: 95.92 kB / 0.5956 GB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.4207, allocations: 122.6 kB / 0.5957 GB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.683e-05/0.4208, allocations: 43.98 kB / 0.5957 GB, free: 13.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001764/0.4226, allocations: 1.568 MB / 0.5972 GB, free: 11.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4226, allocations: 0 / 0.5972 GB, free: 11.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001901/0.4245, allocations: 0.6872 MB / 0.5979 GB, free: 10.95 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.0002599/0.4247, allocations: 174.4 kB / 0.5981 GB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00302/0.4278, allocations: 2.318 MB / 0.6003 GB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4278, allocations: 192 / 0.6003 GB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001833/0.4296, allocations: 1.467 MB / 0.6018 GB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/0.4324, allocations: 0.5661 MB / 0.6023 GB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.4425, allocations: 8.761 MB / 0.6109 GB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002202/0.4447, allocations: 2.595 MB / 0.6134 GB, free: 10.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006564/0.4454, allocations: 183.4 kB / 0.6136 GB, free: 10.76 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4454, allocations: 6.406 kB / 0.6136 GB, free: 10.76 MB / 382.1 MB Notification: Performance of Templates: time 0.2524/0.6978, allocations: 94.78 MB / 0.7062 GB, free: 145.7 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.makefile (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)