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.008307/0.008307, allocations: 100.2 kB / 15.73 MB, free: 6.047 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.42/1.42, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.002028/0.002028, allocations: 192.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0334/0.0334, allocations: 8.798 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 79.88 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1386, allocations: 51.58 MB / 0.5029 GB, free: 9.965 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01777/0.1564, allocations: 15.79 MB / 0.5184 GB, free: 10.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01122/0.1677, allocations: 5.282 MB / 0.5235 GB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003589/0.1713, allocations: 91.69 kB / 0.5236 GB, free: 4.711 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004037/0.1754, allocations: 1.243 MB / 0.5248 GB, free: 3.461 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.006529/0.1819, allocations: 1.604 MB / 0.5264 GB, free: 1.848 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002887/0.1848, allocations: 0.9756 MB / 0.5273 GB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2697/0.4546, allocations: 4.684 MB / 0.5319 GB, free: 5.695 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005257/0.4599, allocations: 3.519 MB / 0.5353 GB, free: 5.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00449/0.4644, allocations: 2.121 MB / 0.5374 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004876/0.4693, allocations: 2.44 MB / 0.5398 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002106/0.4715, allocations: 0.5705 MB / 0.5404 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003224/0.4747, allocations: 0.7797 MB / 0.5411 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001753/0.4765, allocations: 1.285 MB / 0.5424 GB, free: 4.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005867/0.4823, allocations: 2.447 MB / 0.5448 GB, free: 3.652 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01256/0.4949, allocations: 7.528 MB / 0.5521 GB, free: 2.762 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.495, allocations: 5.25 kB / 0.5521 GB, free: 2.758 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.495, allocations: 0 / 0.5521 GB, free: 2.758 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00027/0.4953, allocations: 0 / 0.5521 GB, free: 2.758 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.02017/0.5154, allocations: 5.081 MB / 0.5571 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.664e-05/0.5155, allocations: 9.156 kB / 0.5571 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001377/0.5169, allocations: 0.5541 MB / 0.5576 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006162/0.5231, allocations: 0.9804 MB / 0.5586 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00748/0.5306, allocations: 2.838 MB / 0.5614 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002552/0.5309, allocations: 281.1 kB / 0.5616 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/0.5322, allocations: 369.2 kB / 0.562 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01114/0.5434, allocations: 4.77 MB / 0.5666 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.77e-05/0.5435, allocations: 14.55 kB / 0.5667 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003844/0.5439, allocations: 150.2 kB / 0.5668 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/0.5441, allocations: 160.8 kB / 0.567 GB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008547/0.5526, allocations: 4.045 MB / 0.5709 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02985/0.5825, allocations: 15.6 MB / 0.5861 GB, free: 6.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007342/0.5899, allocations: 6.926 MB / 0.5929 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/0.5925, allocations: 1.506 MB / 0.5944 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008336/0.6009, allocations: 4.157 MB / 0.5984 GB, free: 9.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.687e-05/0.601, allocations: 51.88 kB / 0.5985 GB, free: 9.098 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.337e-06/0.601, allocations: 0 / 0.5985 GB, free: 9.098 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01426/0.6152, allocations: 6.42 MB / 0.6047 GB, free: 2.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.6153, allocations: 72.7 kB / 0.6048 GB, free: 2.477 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003552/0.6189, allocations: 2.187 MB / 0.607 GB, free: 264 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001946/0.6191, allocations: 49.7 kB / 0.607 GB, free: 208 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001271/0.6204, allocations: 1.788 MB / 0.6087 GB, free: 14.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004974/0.6209, allocations: 0.5703 MB / 0.6093 GB, free: 13.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006356/0.6215, allocations: 408.1 kB / 0.6097 GB, free: 13.44 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.6216, allocations: 305.1 kB / 0.61 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.623, allocations: 0.8281 MB / 0.6108 GB, free: 12.31 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001748/0.6248, allocations: 1.588 MB / 0.6123 GB, free: 10.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.628, allocations: 2.592 MB / 0.6149 GB, free: 7.547 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/0.6281, allocations: 4 kB / 0.6149 GB, free: 7.543 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005217/0.6333, allocations: 3.046 MB / 0.6179 GB, free: 4.617 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.415e-05/0.6333, allocations: 19.94 kB / 0.6179 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/0.6334, allocations: 24 kB / 0.6179 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008238/0.6342, allocations: 294.6 kB / 0.6182 GB, free: 4.277 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00185/0.6361, allocations: 0.504 MB / 0.6187 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00496/0.6411, allocations: 4.885 MB / 0.6234 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/0.6434, allocations: 91.88 kB / 0.6235 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002071/0.6436, allocations: 108 kB / 0.6236 GB, free: 14.48 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.002461/0.6461, allocations: 1.133 MB / 0.6247 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005656/0.6466, allocations: 242.5 kB / 0.625 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004153/0.6508, allocations: 2.407 MB / 0.6273 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.6508, allocations: 16 kB / 0.6273 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.6509, allocations: 4 kB / 0.6273 GB, free: 10.67 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.6509, allocations: 7.969 kB / 0.6273 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00984/0.6607, allocations: 5.703 MB / 0.6329 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.6608, allocations: 0 / 0.6329 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.662, allocations: 277.8 kB / 0.6332 GB, free: 4.629 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008847/0.6629, allocations: 318.3 kB / 0.6335 GB, free: 4.312 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.663, allocations: 35.98 kB / 0.6335 GB, free: 4.277 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006581/0.6696, allocations: 7.012 MB / 0.6404 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.6697, allocations: 0 / 0.6404 GB, free: 12.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005673/0.6753, allocations: 3.506 MB / 0.6438 GB, free: 9.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/0.6769, allocations: 0.4994 MB / 0.6443 GB, free: 8.801 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004415/0.6773, allocations: 28 kB / 0.6443 GB, free: 8.773 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.6785, allocations: 75.89 kB / 0.6444 GB, free: 8.699 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.6788, allocations: 109.1 kB / 0.6445 GB, free: 8.598 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.562e-05/0.6789, allocations: 47.98 kB / 0.6445 GB, free: 8.551 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00244/0.6814, allocations: 1.476 MB / 0.646 GB, free: 7.059 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.924e-06/0.6814, allocations: 0 / 0.646 GB, free: 7.059 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003057/0.6844, allocations: 0.6561 MB / 0.6466 GB, free: 6.402 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.005826/0.6903, allocations: 4.123 MB / 0.6506 GB, free: 2.223 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004244/0.6946, allocations: 2.465 MB / 0.653 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.6946, allocations: 0 / 0.653 GB, free: 15.79 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002171/0.6968, allocations: 1.413 MB / 0.6544 GB, free: 14.37 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003301/0.7001, allocations: 0.5702 MB / 0.655 GB, free: 13.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04438/0.7445, allocations: 23.69 MB / 0.6781 GB, free: 5.105 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002602/0.7471, allocations: 2.519 MB / 0.6806 GB, free: 2.555 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002046/0.7492, allocations: 0.5196 MB / 0.6811 GB, free: 2.031 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0019/0.7511, allocations: 1.347 MB / 0.6824 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of SimCode: time 9.21e-07/0.7511, allocations: 4 kB / 0.6824 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3779/1.129, allocations: 57.86 MB / 0.7389 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/15.19, allocations: 11.16 kB / 0.7389 GB, free: 179.7 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)