Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",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.001457/0.001457, 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.434/1.434, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001538/0.001538, allocations: 192.5 kB / 289.6 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03432/0.03432, allocations: 8.787 MB / 348.5 MB, free: 4.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 80.61 kB / 411.2 MB, free: 41.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.1014, allocations: 51.57 MB / 462.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01706/0.1185, allocations: 15.81 MB / 478.6 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.1307, allocations: 5.278 MB / 483.8 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00439/0.1351, allocations: 99.56 kB / 483.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004953/0.1401, allocations: 1.211 MB / 485.1 MB, free: 7.762 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.006843/0.147, allocations: 1.545 MB / 486.7 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00359/0.1507, allocations: 0.9743 MB / 487.7 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00711/0.1578, allocations: 4.678 MB / 492.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006008/0.1638, allocations: 3.517 MB / 495.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003745/0.1676, allocations: 2.103 MB / 498 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004375/0.172, allocations: 2.428 MB / 0.4887 GB, free: 8.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001904/0.1739, allocations: 0.5703 MB / 0.4892 GB, free: 7.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003087/0.177, allocations: 0.7888 MB / 0.49 GB, free: 7.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002172/0.1792, allocations: 1.293 MB / 0.4913 GB, free: 5.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004881/0.1841, allocations: 2.443 MB / 0.4936 GB, free: 3.301 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009677/0.1938, allocations: 7.45 MB / 0.5009 GB, free: 11.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1939, allocations: 0 / 0.5009 GB, free: 11.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1939, allocations: 4 kB / 0.5009 GB, free: 11.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002517/0.1941, allocations: 0 / 0.5009 GB, free: 11.82 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.01527/0.2094, allocations: 4.97 MB / 0.5058 GB, free: 6.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.2095, allocations: 8.031 kB / 0.5058 GB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001693/0.2112, allocations: 0.557 MB / 0.5063 GB, free: 6.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00589/0.2171, allocations: 0.9561 MB / 0.5073 GB, free: 5.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007166/0.2243, allocations: 2.762 MB / 0.51 GB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003254/0.2246, allocations: 279.8 kB / 0.5102 GB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001356/0.226, allocations: 367.9 kB / 0.5106 GB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/0.2374, allocations: 4.772 MB / 0.5152 GB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001352/0.2375, allocations: 11.84 kB / 0.5152 GB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007628/0.2383, allocations: 152 kB / 0.5154 GB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/0.2385, allocations: 155.4 kB / 0.5155 GB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008437/0.2469, allocations: 4.042 MB / 0.5195 GB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2554/0.5023, allocations: 15.74 MB / 0.5349 GB, free: 56.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006621/0.509, allocations: 6.915 MB / 0.5416 GB, free: 51.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002876/0.5119, allocations: 1.516 MB / 0.5431 GB, free: 51.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007714/0.5197, allocations: 4.173 MB / 0.5472 GB, free: 50.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/0.5197, allocations: 54.94 kB / 0.5472 GB, free: 50.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.559e-06/0.5197, allocations: 0 / 0.5472 GB, free: 50.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01316/0.5329, allocations: 6.368 MB / 0.5534 GB, free: 47.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.533, allocations: 67.16 kB / 0.5535 GB, free: 47.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00345/0.5365, allocations: 2.183 MB / 0.5556 GB, free: 47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000212/0.5367, allocations: 57.45 kB / 0.5557 GB, free: 46.95 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008927/0.5376, allocations: 1.736 MB / 0.5574 GB, free: 45.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004037/0.538, allocations: 0.5484 MB / 0.5579 GB, free: 45.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005384/0.5386, allocations: 405.6 kB / 0.5583 GB, free: 44.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.282e-05/0.5386, allocations: 301.1 kB / 0.5586 GB, free: 44.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.5398, allocations: 0.8273 MB / 0.5594 GB, free: 44.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.5411, allocations: 1.588 MB / 0.561 GB, free: 42.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002642/0.5438, allocations: 2.586 MB / 0.5635 GB, free: 40.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/0.5438, allocations: 7.531 kB / 0.5635 GB, free: 40.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004478/0.5483, allocations: 3.04 MB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.5484, allocations: 14.78 kB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.381e-05/0.5484, allocations: 29.23 kB / 0.5665 GB, free: 39.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007629/0.5492, allocations: 307.8 kB / 0.5668 GB, free: 38.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.5508, allocations: 0.4963 MB / 0.5673 GB, free: 38.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003756/0.5546, allocations: 4.869 MB / 0.572 GB, free: 34.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001869/0.5565, allocations: 107.3 kB / 0.5721 GB, free: 34.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.5566, allocations: 97.88 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.001807/0.5584, allocations: 1.142 MB / 0.5733 GB, free: 33.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004143/0.5588, allocations: 236.1 kB / 0.5736 GB, free: 33.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00338/0.5622, allocations: 2.398 MB / 0.5759 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.5623, allocations: 22.33 kB / 0.5759 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.5623, allocations: 7 kB / 0.5759 GB, free: 32.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.5623, allocations: 7.969 kB / 0.5759 GB, free: 32.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007492/0.5698, allocations: 5.702 MB / 0.5815 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.914e-06/0.5698, allocations: 4 kB / 0.5815 GB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.5709, allocations: 271.7 kB / 0.5818 GB, free: 26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007097/0.5716, allocations: 317.4 kB / 0.5821 GB, free: 25.69 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.642e-05/0.5717, allocations: 40.88 kB / 0.5821 GB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004992/0.5767, allocations: 7.031 MB / 0.589 GB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.5768, allocations: 0 / 0.589 GB, free: 18.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004693/0.5815, allocations: 3.487 MB / 0.5924 GB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.5827, allocations: 494.2 kB / 0.5929 GB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/0.583, allocations: 32 kB / 0.5929 GB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.584, allocations: 67.95 kB / 0.593 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.5843, allocations: 117.1 kB / 0.5931 GB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.21e-05/0.5844, allocations: 44 kB / 0.5931 GB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001889/0.5863, allocations: 1.477 MB / 0.5946 GB, free: 12.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5863, allocations: 192 / 0.5946 GB, free: 12.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002443/0.5887, allocations: 0.6523 MB / 0.5952 GB, free: 11.77 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.004561/0.5933, allocations: 4.107 MB / 0.5992 GB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005426/0.5988, allocations: 3.038 MB / 0.6022 GB, free: 4.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.5988, allocations: 0 / 0.6022 GB, free: 4.512 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001642/0.6004, allocations: 1.41 MB / 0.6035 GB, free: 3.062 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.6032, allocations: 0.573 MB / 0.6041 GB, free: 2.512 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04449/0.6477, allocations: 27.03 MB / 0.6305 GB, free: 4.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003544/0.6513, allocations: 2.515 MB / 0.633 GB, free: 2.398 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002472/0.6538, allocations: 0.5235 MB / 0.6335 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002197/0.656, allocations: 1.347 MB / 0.6348 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of SimCode: time 9.61e-07/0.656, allocations: 0 / 0.6348 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1143/0.7703, allocations: 58.43 MB / 0.6918 GB, free: 6.492 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.32, allocations: 10.34 kB / 0.6919 GB, free: 6.484 MB / 462.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3_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_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)