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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008335/0.0008336, allocations: 91.3 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.333/1.333, 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.00104/0.00104, allocations: 183.4 kB / 290.6 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03254/0.03254, allocations: 8.801 MB / 350.5 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004721/0.0004724, allocations: 14.5 kB / 413.9 MB, free: 42.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09348/0.09398, allocations: 52.56 MB / 466.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.01718/0.1112, allocations: 15.76 MB / 482.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.1222, allocations: 5.322 MB / 487.6 MB, free: 7.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003634/0.1259, allocations: 95.62 kB / 487.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004144/0.1301, allocations: 1.108 MB / 488.8 MB, free: 6.656 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.005921/0.136, allocations: 1.446 MB / 490.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003417/0.1395, allocations: 0.9672 MB / 491.2 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007096/0.1466, allocations: 5.287 MB / 496.5 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005669/0.1523, allocations: 3.625 MB / 0.4884 GB, free: 11.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002841/0.1552, allocations: 1.602 MB / 0.4899 GB, free: 9.613 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00341/0.1586, allocations: 2.139 MB / 0.492 GB, free: 7.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001086/0.1597, allocations: 252 kB / 0.4923 GB, free: 7.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002085/0.1618, allocations: 487.7 kB / 0.4927 GB, free: 6.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001475/0.1633, allocations: 0.9922 MB / 0.4937 GB, free: 5.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003717/0.167, allocations: 2.182 MB / 0.4958 GB, free: 3.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008968/0.176, allocations: 7.587 MB / 0.5032 GB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.1761, allocations: 0 / 0.5032 GB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1761, allocations: 8 kB / 0.5032 GB, free: 11.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002525/0.1763, allocations: 0 / 0.5032 GB, free: 11.93 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.01351/0.1899, allocations: 4.571 MB / 0.5077 GB, free: 7.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.547e-05/0.19, allocations: 8.031 kB / 0.5077 GB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002157/0.1921, allocations: 0.5635 MB / 0.5083 GB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005566/0.1977, allocations: 0.9948 MB / 0.5092 GB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005884/0.2036, allocations: 2.859 MB / 0.512 GB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002794/0.2039, allocations: 312.4 kB / 0.5123 GB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007209/0.2046, allocations: 399.9 kB / 0.5127 GB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008797/0.2135, allocations: 5.244 MB / 0.5178 GB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.95e-05/0.2136, allocations: 4 kB / 0.5178 GB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003594/0.2139, allocations: 163.9 kB / 0.518 GB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000152/0.2141, allocations: 168 kB / 0.5182 GB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007784/0.2219, allocations: 4.509 MB / 0.5226 GB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2321/0.454, allocations: 16.94 MB / 0.5391 GB, free: 55.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007175/0.4613, allocations: 8.461 MB / 0.5474 GB, free: 48.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003384/0.4647, allocations: 1.72 MB / 0.549 GB, free: 48.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007728/0.4724, allocations: 5.054 MB / 0.554 GB, free: 47.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.4725, allocations: 54.72 kB / 0.554 GB, free: 47.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=158): time 3.276e-06/0.4725, allocations: 0 / 0.554 GB, free: 47.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=161): time 0.01092/0.4834, allocations: 6.271 MB / 0.5602 GB, free: 44.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.759e-05/0.4835, allocations: 64.56 kB / 0.5602 GB, free: 44.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002708/0.4862, allocations: 2.309 MB / 0.5625 GB, free: 42.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.112e-05/0.4863, allocations: 61.2 kB / 0.5625 GB, free: 42.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008379/0.4871, allocations: 1.85 MB / 0.5643 GB, free: 41.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002863/0.4874, allocations: 0.5564 MB / 0.5649 GB, free: 40.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.4876, allocations: 177 kB / 0.565 GB, free: 40.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.821e-05/0.4877, allocations: 301.1 kB / 0.5653 GB, free: 40.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.4889, allocations: 0.8675 MB / 0.5662 GB, free: 39.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.4904, allocations: 1.58 MB / 0.5677 GB, free: 38.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002748/0.4931, allocations: 2.605 MB / 0.5703 GB, free: 36.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4932, allocations: 12.44 kB / 0.5703 GB, free: 36.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.003752/0.4969, allocations: 2.93 MB / 0.5731 GB, free: 34.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.497, allocations: 16.53 kB / 0.5732 GB, free: 34.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.563e-05/0.497, allocations: 23.53 kB / 0.5732 GB, free: 34.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.4973, allocations: 133.2 kB / 0.5733 GB, free: 34.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/0.499, allocations: 0.5503 MB / 0.5738 GB, free: 34.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.5003, allocations: 1.827 MB / 0.5756 GB, free: 32.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.5018, allocations: 126.9 kB / 0.5758 GB, free: 32.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.5019, allocations: 95.78 kB / 0.5758 GB, free: 32.9 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.001703/0.5036, allocations: 1.197 MB / 0.577 GB, free: 32.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002696/0.5039, allocations: 245.7 kB / 0.5772 GB, free: 31.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003544/0.5075, allocations: 2.508 MB / 0.5797 GB, free: 29.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.5075, allocations: 16 kB / 0.5797 GB, free: 29.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.5075, allocations: 7.984 kB / 0.5797 GB, free: 29.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.5075, allocations: 3.984 kB / 0.5797 GB, free: 29.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007085/0.5146, allocations: 5.863 MB / 0.5854 GB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.5146, allocations: 4 kB / 0.5855 GB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.5158, allocations: 303.8 kB / 0.5857 GB, free: 23.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007008/0.5165, allocations: 307 kB / 0.586 GB, free: 23.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.378e-05/0.5166, allocations: 39.98 kB / 0.5861 GB, free: 23.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00457/0.5212, allocations: 6.421 MB / 0.5923 GB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5212, allocations: 4.031 kB / 0.5923 GB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004545/0.5257, allocations: 3.635 MB / 0.5959 GB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008048/0.5266, allocations: 0.5018 MB / 0.5964 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002696/0.5268, allocations: 35.28 kB / 0.5964 GB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.5279, allocations: 95.92 kB / 0.5965 GB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.5282, allocations: 121.1 kB / 0.5966 GB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.539e-05/0.5282, allocations: 47.98 kB / 0.5967 GB, free: 11.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001815/0.5301, allocations: 1.568 MB / 0.5982 GB, free: 10.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.5301, allocations: 4 kB / 0.5982 GB, free: 10.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001936/0.532, allocations: 0.6757 MB / 0.5989 GB, free: 9.414 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.004776/0.5368, allocations: 4.262 MB / 0.603 GB, free: 5.062 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.54, allocations: 2.323 MB / 0.6053 GB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/0.54, allocations: 1.812 kB / 0.6053 GB, free: 2.711 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001805/0.5418, allocations: 1.469 MB / 0.6067 GB, free: 1.207 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/0.5449, allocations: 0.5579 MB / 0.6073 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05256/0.5975, allocations: 29.85 MB / 0.6364 GB, free: 208 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002458/0.6, allocations: 2.669 MB / 0.639 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002098/0.6021, allocations: 0.5552 MB / 0.6396 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001889/0.604, allocations: 1.476 MB / 0.641 GB, free: 11.48 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.604, allocations: 0 / 0.641 GB, free: 11.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0901/0.6942, allocations: 58.15 MB / 0.6978 GB, free: 1.734 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.6944, allocations: 216.6 kB / 0.698 GB, free: 1.477 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.858/3.553, allocations: 0 / 0.698 GB, free: 1.477 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)