Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.001254/0.001254, 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.419/1.419, allocations: 222.9 MB / 239.3 MB, free: 4.578 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.001411/0.001411, allocations: 191.7 kB / 289.6 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03413/0.03413, allocations: 8.796 MB / 348.5 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 78.89 kB / 411.2 MB, free: 41.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09756, allocations: 51.57 MB / 462.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01784/0.1154, allocations: 15.79 MB / 478.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.1271, allocations: 5.278 MB / 483.8 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003638/0.1308, allocations: 91.75 kB / 483.9 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004218/0.135, allocations: 1.211 MB / 485.1 MB, free: 7.75 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.006336/0.1414, allocations: 1.555 MB / 486.7 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00377/0.1452, allocations: 0.9678 MB / 487.7 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00781/0.1531, allocations: 4.678 MB / 492.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004799/0.1579, allocations: 3.517 MB / 495.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003804/0.1618, allocations: 2.099 MB / 498 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004258/0.166, allocations: 2.428 MB / 0.4887 GB, free: 8.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001635/0.1677, allocations: 0.5703 MB / 0.4892 GB, free: 7.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002551/0.1703, allocations: 0.7966 MB / 0.49 GB, free: 7.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001497/0.1718, allocations: 1.289 MB / 0.4912 GB, free: 5.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003884/0.1757, allocations: 2.443 MB / 0.4936 GB, free: 3.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008187/0.1839, allocations: 7.45 MB / 0.5009 GB, free: 11.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.184, allocations: 0 / 0.5009 GB, free: 11.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.184, allocations: 4 kB / 0.5009 GB, free: 11.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002237/0.1842, allocations: 0 / 0.5009 GB, free: 11.81 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01639/0.2006, allocations: 4.97 MB / 0.5058 GB, free: 6.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.803e-05/0.2007, allocations: 8.031 kB / 0.5058 GB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001787/0.2025, allocations: 0.557 MB / 0.5063 GB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005518/0.208, allocations: 0.96 MB / 0.5073 GB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006299/0.2143, allocations: 2.758 MB / 0.5099 GB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002563/0.2146, allocations: 279.8 kB / 0.5102 GB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/0.2157, allocations: 367.9 kB / 0.5106 GB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00931/0.2251, allocations: 4.769 MB / 0.5152 GB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-05/0.2252, allocations: 11.89 kB / 0.5152 GB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003623/0.2255, allocations: 155.8 kB / 0.5154 GB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.2257, allocations: 155.4 kB / 0.5155 GB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007812/0.2335, allocations: 4.042 MB / 0.5195 GB, free: 8.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2676/0.5012, allocations: 15.74 MB / 0.5348 GB, free: 56.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006163/0.5074, allocations: 6.921 MB / 0.5416 GB, free: 51.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002748/0.5101, allocations: 1.513 MB / 0.5431 GB, free: 51.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007943/0.5181, allocations: 4.175 MB / 0.5472 GB, free: 50.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.5182, allocations: 53.16 kB / 0.5472 GB, free: 50.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.108e-06/0.5182, allocations: 1.25 kB / 0.5472 GB, free: 50.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01301/0.5312, allocations: 6.366 MB / 0.5534 GB, free: 47.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.5313, allocations: 68.03 kB / 0.5535 GB, free: 47.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003228/0.5345, allocations: 2.187 MB / 0.5556 GB, free: 46.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001485/0.5347, allocations: 57.52 kB / 0.5557 GB, free: 46.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008567/0.5356, allocations: 1.725 MB / 0.5574 GB, free: 45.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/0.5359, allocations: 0.5532 MB / 0.5579 GB, free: 45.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005005/0.5364, allocations: 405.6 kB / 0.5583 GB, free: 44.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.478e-05/0.5365, allocations: 305.1 kB / 0.5586 GB, free: 44.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.5376, allocations: 0.8272 MB / 0.5594 GB, free: 44.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.5393, allocations: 1.594 MB / 0.5609 GB, free: 42.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002827/0.5421, allocations: 2.585 MB / 0.5635 GB, free: 40.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.808e-05/0.5422, allocations: 9.766 kB / 0.5635 GB, free: 40.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004604/0.5468, allocations: 3.034 MB / 0.5664 GB, free: 39.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.271e-05/0.5468, allocations: 15.03 kB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.976e-05/0.5469, allocations: 23.38 kB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007391/0.5476, allocations: 304.6 kB / 0.5668 GB, free: 38.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.5493, allocations: 0.499 MB / 0.5673 GB, free: 38.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003774/0.5531, allocations: 4.869 MB / 0.572 GB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002172/0.5553, allocations: 101.2 kB / 0.5721 GB, free: 34.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.5554, allocations: 102.3 kB / 0.5722 GB, free: 34.45 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * 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 (264): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001771/0.5572, allocations: 1.139 MB / 0.5733 GB, free: 33.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004659/0.5577, allocations: 236.2 kB / 0.5735 GB, free: 33.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003479/0.5612, allocations: 2.401 MB / 0.5759 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.5612, allocations: 21.78 kB / 0.5759 GB, free: 32.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.5612, allocations: 4.938 kB / 0.5759 GB, free: 32.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.5612, allocations: 7.969 kB / 0.5759 GB, free: 32.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00761/0.5689, allocations: 5.711 MB / 0.5815 GB, free: 26.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.5689, allocations: 4 kB / 0.5815 GB, free: 26.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.5701, allocations: 273.6 kB / 0.5818 GB, free: 25.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000736/0.5708, allocations: 319 kB / 0.5821 GB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-05/0.5709, allocations: 35.98 kB / 0.5821 GB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005087/0.576, allocations: 7.031 MB / 0.589 GB, free: 18.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.576, allocations: 0 / 0.589 GB, free: 18.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004584/0.5806, allocations: 3.486 MB / 0.5924 GB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.5818, allocations: 490.2 kB / 0.5928 GB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003057/0.5821, allocations: 33.27 kB / 0.5929 GB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.5831, allocations: 67.95 kB / 0.5929 GB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.5834, allocations: 125 kB / 0.5931 GB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.677e-05/0.5834, allocations: 47.92 kB / 0.5931 GB, free: 13.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001721/0.5852, allocations: 1.472 MB / 0.5945 GB, free: 12.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5852, allocations: 0 / 0.5945 GB, free: 12.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002189/0.5874, allocations: 0.6523 MB / 0.5952 GB, free: 11.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.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 {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004479/0.5919, allocations: 4.111 MB / 0.5992 GB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005559/0.5974, allocations: 3.034 MB / 0.6022 GB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5975, allocations: 0 / 0.6022 GB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001701/0.5992, allocations: 1.406 MB / 0.6035 GB, free: 3.047 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.6018, allocations: 0.5714 MB / 0.6041 GB, free: 2.496 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0409/0.6427, allocations: 27.04 MB / 0.6305 GB, free: 4.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002233/0.645, allocations: 2.519 MB / 0.633 GB, free: 2.371 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002048/0.6471, allocations: 0.5196 MB / 0.6335 GB, free: 1.848 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001774/0.6489, allocations: 1.347 MB / 0.6348 GB, free: 0.5 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6489, allocations: 0 / 0.6348 GB, free: 0.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1136/0.7625, allocations: 58.42 MB / 0.6918 GB, free: 6.477 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.24, allocations: 16.62 kB / 0.6918 GB, free: 6.465 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1_res.csv --start-time 0 --stop-time 0.3 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.000100033 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)