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.006054/0.006054, allocations: 101.7 kB / 15.73 MB, free: 6.449 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.515/1.515, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.001945/0.001944, allocations: 192.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03947/0.03947, allocations: 8.795 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002263/0.002263, allocations: 79.88 kB / 463.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1231, allocations: 51.56 MB / 0.5029 GB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.0204/0.1435, allocations: 15.81 MB / 0.5184 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01225/0.1558, allocations: 5.266 MB / 0.5235 GB, free: 4.898 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003659/0.1596, allocations: 91.69 kB / 0.5236 GB, free: 4.809 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005375/0.165, allocations: 1.223 MB / 0.5248 GB, free: 3.578 MB / 366.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.00714/0.1722, allocations: 1.553 MB / 0.5263 GB, free: 2.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004269/0.1765, allocations: 0.9665 MB / 0.5273 GB, free: 1.051 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3024/0.4789, allocations: 4.691 MB / 0.5318 GB, free: 5.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00613/0.4851, allocations: 3.525 MB / 0.5353 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005719/0.4908, allocations: 2.107 MB / 0.5373 GB, free: 4.703 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005375/0.4962, allocations: 2.438 MB / 0.5397 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002074/0.4983, allocations: 0.5705 MB / 0.5403 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003403/0.5018, allocations: 0.7843 MB / 0.541 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002424/0.5042, allocations: 1.284 MB / 0.5423 GB, free: 4.129 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007598/0.5118, allocations: 2.44 MB / 0.5447 GB, free: 3.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.5253, allocations: 7.531 MB / 0.552 GB, free: 2.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.5254, allocations: 1.25 kB / 0.552 GB, free: 2.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5254, allocations: 4 kB / 0.552 GB, free: 2.629 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003129/0.5257, allocations: 0 / 0.552 GB, free: 2.629 MB / 366.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.02105/0.5467, allocations: 5.085 MB / 0.557 GB, free: 15.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.722e-05/0.5468, allocations: 13.53 kB / 0.557 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002583/0.5494, allocations: 0.5575 MB / 0.5576 GB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006695/0.5561, allocations: 0.9784 MB / 0.5585 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007449/0.5636, allocations: 2.84 MB / 0.5613 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003165/0.564, allocations: 278.1 kB / 0.5616 GB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.5658, allocations: 371.5 kB / 0.5619 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01579/0.5816, allocations: 4.771 MB / 0.5666 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001131/0.5818, allocations: 10.45 kB / 0.5666 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006741/0.5825, allocations: 146.9 kB / 0.5667 GB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001768/0.5826, allocations: 160.5 kB / 0.5669 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.5934, allocations: 4.048 MB / 0.5708 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03449/0.6279, allocations: 15.6 MB / 0.5861 GB, free: 6.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00836/0.6363, allocations: 6.929 MB / 0.5928 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/0.6395, allocations: 1.51 MB / 0.5943 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009526/0.6491, allocations: 4.159 MB / 0.5984 GB, free: 9.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.017e-05/0.6492, allocations: 49 kB / 0.5984 GB, free: 9.172 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.667e-06/0.6492, allocations: 0 / 0.5984 GB, free: 9.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01524/0.6645, allocations: 6.422 MB / 0.6047 GB, free: 2.633 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.6646, allocations: 72.7 kB / 0.6047 GB, free: 2.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/0.6696, allocations: 2.183 MB / 0.6069 GB, free: 344 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002692/0.6699, allocations: 49.7 kB / 0.6069 GB, free: 288 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001782/0.6717, allocations: 1.79 MB / 0.6087 GB, free: 14.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007915/0.6725, allocations: 0.5741 MB / 0.6092 GB, free: 13.92 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009095/0.6734, allocations: 408.1 kB / 0.6096 GB, free: 13.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.6735, allocations: 305.1 kB / 0.6099 GB, free: 13.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.6752, allocations: 0.8242 MB / 0.6107 GB, free: 12.38 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002387/0.6776, allocations: 1.588 MB / 0.6123 GB, free: 10.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004309/0.682, allocations: 2.59 MB / 0.6148 GB, free: 7.621 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.411e-05/0.682, allocations: 7.562 kB / 0.6148 GB, free: 7.617 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00634/0.6884, allocations: 3.046 MB / 0.6178 GB, free: 4.688 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.737e-05/0.6884, allocations: 19.94 kB / 0.6178 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-05/0.6885, allocations: 24 kB / 0.6178 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009423/0.6894, allocations: 302 kB / 0.6181 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/0.6914, allocations: 0.4948 MB / 0.6186 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005921/0.6973, allocations: 4.878 MB / 0.6234 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00316/0.7005, allocations: 99.88 kB / 0.6235 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000477/0.701, allocations: 99.98 kB / 0.6235 GB, free: 14.56 MB / 446.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.003256/0.7043, allocations: 1.133 MB / 0.6247 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/0.7054, allocations: 246.5 kB / 0.6249 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005745/0.7111, allocations: 2.403 MB / 0.6272 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.018e-05/0.7112, allocations: 19.47 kB / 0.6273 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/0.7112, allocations: 4 kB / 0.6273 GB, free: 10.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/0.7112, allocations: 7.969 kB / 0.6273 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0136/0.7248, allocations: 5.697 MB / 0.6328 GB, free: 4.965 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.7249, allocations: 7.469 kB / 0.6328 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.7262, allocations: 270.3 kB / 0.6331 GB, free: 4.707 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009762/0.7272, allocations: 316.1 kB / 0.6334 GB, free: 4.395 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.7274, allocations: 43.98 kB / 0.6334 GB, free: 4.352 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008145/0.7355, allocations: 7.017 MB / 0.6403 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.7356, allocations: 4.031 kB / 0.6403 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006794/0.7424, allocations: 3.495 MB / 0.6437 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/0.744, allocations: 0.4957 MB / 0.6442 GB, free: 8.879 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008427/0.7449, allocations: 36 kB / 0.6442 GB, free: 8.844 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/0.7466, allocations: 67.89 kB / 0.6443 GB, free: 8.777 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003543/0.747, allocations: 120.6 kB / 0.6444 GB, free: 8.664 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/0.7471, allocations: 39.98 kB / 0.6444 GB, free: 8.625 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003424/0.7505, allocations: 1.479 MB / 0.6459 GB, free: 7.129 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7506, allocations: 0 / 0.6459 GB, free: 7.129 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003608/0.7542, allocations: 0.6523 MB / 0.6465 GB, free: 6.477 MB / 462.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.007261/0.7615, allocations: 4.119 MB / 0.6505 GB, free: 2.301 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004758/0.7663, allocations: 2.466 MB / 0.653 GB, free: 15.87 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.7663, allocations: 0 / 0.653 GB, free: 15.87 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002518/0.7688, allocations: 1.414 MB / 0.6543 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004151/0.773, allocations: 0.5767 MB / 0.6549 GB, free: 13.88 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05675/0.8298, allocations: 23.69 MB / 0.678 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004447/0.8343, allocations: 2.523 MB / 0.6805 GB, free: 2.664 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002325/0.8366, allocations: 0.5157 MB / 0.681 GB, free: 2.145 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002657/0.8393, allocations: 1.351 MB / 0.6823 GB, free: 0.793 MB / 494.1 MB Notification: Performance of SimCode: time 8.61e-07/0.8393, allocations: 0 / 0.6823 GB, free: 0.793 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3623/1.202, allocations: 57.85 MB / 0.7388 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.51/15.71, allocations: 15.31 kB / 0.7388 GB, free: 179.6 MB / 0.5294 GB (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)