Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",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.006328/0.006328, allocations: 102 kB / 15.73 MB, free: 6.441 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.513/1.513, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001727/0.001727, allocations: 188.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03714/0.03714, allocations: 8.804 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003317/0.003317, allocations: 79.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1432, allocations: 51.57 MB / 0.503 GB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.02058/0.1638, allocations: 15.81 MB / 0.5184 GB, free: 10.05 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.1765, allocations: 5.274 MB / 0.5235 GB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0036/0.1801, allocations: 95.69 kB / 0.5236 GB, free: 4.672 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004198/0.1844, allocations: 1.211 MB / 0.5248 GB, free: 3.453 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.005829/0.1902, allocations: 1.561 MB / 0.5263 GB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003516/0.1938, allocations: 0.9681 MB / 0.5273 GB, free: 0.918 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2545/0.4483, allocations: 4.686 MB / 0.5319 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005653/0.454, allocations: 3.521 MB / 0.5353 GB, free: 5.094 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004241/0.4583, allocations: 2.102 MB / 0.5374 GB, free: 4.836 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005094/0.4634, allocations: 2.444 MB / 0.5397 GB, free: 4.406 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002008/0.4654, allocations: 0.5698 MB / 0.5403 GB, free: 4.406 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003333/0.4688, allocations: 0.7787 MB / 0.5411 GB, free: 4.406 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002033/0.4708, allocations: 1.287 MB / 0.5423 GB, free: 4.258 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006495/0.4773, allocations: 2.442 MB / 0.5447 GB, free: 3.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01405/0.4914, allocations: 7.529 MB / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.4915, allocations: 0 / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4915, allocations: 1.688 kB / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003052/0.4918, allocations: 5.125 kB / 0.5521 GB, free: 2.73 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.01895/0.5108, allocations: 5.081 MB / 0.557 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.5108, allocations: 13.28 kB / 0.557 GB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002172/0.513, allocations: 0.5547 MB / 0.5576 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00622/0.5193, allocations: 0.9789 MB / 0.5585 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007865/0.5271, allocations: 2.837 MB / 0.5613 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/0.5275, allocations: 276.8 kB / 0.5616 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/0.529, allocations: 372.8 kB / 0.5619 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01265/0.5416, allocations: 4.776 MB / 0.5666 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.657e-05/0.5418, allocations: 6.953 kB / 0.5666 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004655/0.5422, allocations: 147.3 kB / 0.5667 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/0.5424, allocations: 161.3 kB / 0.5669 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009238/0.5516, allocations: 4.046 MB / 0.5708 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03803/0.5897, allocations: 15.6 MB / 0.5861 GB, free: 6.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008684/0.5984, allocations: 6.937 MB / 0.5928 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003234/0.6017, allocations: 1.502 MB / 0.5943 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009706/0.6114, allocations: 4.156 MB / 0.5984 GB, free: 9.164 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.76e-05/0.6115, allocations: 47.88 kB / 0.5984 GB, free: 9.105 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 6.432e-06/0.6116, allocations: 3.984 kB / 0.5984 GB, free: 9.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01596/0.6275, allocations: 6.422 MB / 0.6047 GB, free: 2.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.6276, allocations: 68.72 kB / 0.6048 GB, free: 2.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005049/0.6327, allocations: 2.183 MB / 0.6069 GB, free: 272 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002992/0.633, allocations: 53.7 kB / 0.6069 GB, free: 212 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001684/0.6347, allocations: 1.789 MB / 0.6087 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007476/0.6355, allocations: 0.5715 MB / 0.6093 GB, free: 13.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00098/0.6365, allocations: 404.1 kB / 0.6096 GB, free: 13.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.6366, allocations: 305.1 kB / 0.6099 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001687/0.6383, allocations: 0.8306 MB / 0.6107 GB, free: 12.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002295/0.6406, allocations: 1.588 MB / 0.6123 GB, free: 10.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004117/0.6448, allocations: 2.584 MB / 0.6148 GB, free: 7.555 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.797e-05/0.6448, allocations: 11.56 kB / 0.6148 GB, free: 7.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006438/0.6513, allocations: 3.05 MB / 0.6178 GB, free: 4.613 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.178e-05/0.6513, allocations: 23.78 kB / 0.6178 GB, free: 4.594 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.838e-05/0.6514, allocations: 24 kB / 0.6178 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009937/0.6524, allocations: 298.1 kB / 0.6181 GB, free: 4.273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/0.6544, allocations: 0.4962 MB / 0.6186 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005741/0.6602, allocations: 4.867 MB / 0.6234 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003237/0.6634, allocations: 107.9 kB / 0.6235 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006075/0.6641, allocations: 104.1 kB / 0.6236 GB, free: 14.5 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.003729/0.6678, allocations: 1.134 MB / 0.6247 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009631/0.6688, allocations: 250.5 kB / 0.6249 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005625/0.6744, allocations: 2.402 MB / 0.6273 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.44e-05/0.6745, allocations: 19.98 kB / 0.6273 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.117e-05/0.6745, allocations: 4 kB / 0.6273 GB, free: 10.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.191e-05/0.6745, allocations: 7.969 kB / 0.6273 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01412/0.6887, allocations: 5.699 MB / 0.6329 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.6887, allocations: 0 / 0.6329 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.6901, allocations: 274.2 kB / 0.6331 GB, free: 4.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009425/0.6911, allocations: 314.4 kB / 0.6334 GB, free: 4.328 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001808/0.6913, allocations: 43.55 kB / 0.6335 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008263/0.6996, allocations: 7.013 MB / 0.6403 GB, free: 12.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6996, allocations: 3.75 kB / 0.6403 GB, free: 12.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007126/0.7067, allocations: 3.501 MB / 0.6437 GB, free: 9.328 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001784/0.7086, allocations: 0.4955 MB / 0.6442 GB, free: 8.812 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009901/0.7096, allocations: 32 kB / 0.6442 GB, free: 8.781 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/0.7114, allocations: 67.89 kB / 0.6443 GB, free: 8.715 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004007/0.7118, allocations: 113.2 kB / 0.6444 GB, free: 8.605 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000148/0.712, allocations: 47.98 kB / 0.6445 GB, free: 8.559 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00363/0.7156, allocations: 1.476 MB / 0.6459 GB, free: 7.066 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7156, allocations: 0 / 0.6459 GB, free: 7.066 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004134/0.7198, allocations: 0.6562 MB / 0.6465 GB, free: 6.41 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.00763/0.7274, allocations: 4.114 MB / 0.6506 GB, free: 2.238 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005004/0.7325, allocations: 2.466 MB / 0.653 GB, free: 15.81 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.354e-05/0.7325, allocations: 4 kB / 0.653 GB, free: 15.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00258/0.7351, allocations: 1.413 MB / 0.6544 GB, free: 14.39 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004377/0.7395, allocations: 0.5728 MB / 0.6549 GB, free: 13.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05622/0.7957, allocations: 23.69 MB / 0.6781 GB, free: 5.125 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004951/0.8007, allocations: 2.526 MB / 0.6805 GB, free: 2.566 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00243/0.8032, allocations: 0.5156 MB / 0.681 GB, free: 2.047 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002832/0.806, allocations: 1.358 MB / 0.6823 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of SimCode: time 1.463e-06/0.8061, allocations: 0 / 0.6823 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3842/1.19, allocations: 57.83 MB / 0.7388 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.54/15.73, allocations: 10.91 kB / 0.7388 GB, free: 179.7 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2_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_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)