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.009638/0.009638, allocations: 102.5 kB / 15.73 MB, free: 5.508 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.528/1.528, allocations: 222.9 MB / 239.4 MB, free: 4.461 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.001778/0.001778, allocations: 192.4 kB / 289.7 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03683/0.03683, allocations: 8.802 MB / 348.7 MB, free: 4.555 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002911/0.002911, allocations: 87.81 kB / 463.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1505, allocations: 51.56 MB / 0.503 GB, free: 9.871 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.02938/0.18, allocations: 15.82 MB / 0.5184 GB, free: 9.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01512/0.1951, allocations: 5.286 MB / 0.5236 GB, free: 4.676 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004055/0.1993, allocations: 91.69 kB / 0.5236 GB, free: 4.586 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004951/0.2042, allocations: 1.208 MB / 0.5248 GB, free: 3.371 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.006801/0.2111, allocations: 1.553 MB / 0.5263 GB, free: 1.809 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003481/0.2146, allocations: 0.9742 MB / 0.5273 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2537/0.4683, allocations: 4.682 MB / 0.5319 GB, free: 5.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004922/0.4733, allocations: 3.529 MB / 0.5353 GB, free: 5.113 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004637/0.478, allocations: 2.105 MB / 0.5374 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005837/0.4838, allocations: 2.436 MB / 0.5397 GB, free: 4.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002188/0.486, allocations: 0.5714 MB / 0.5403 GB, free: 4.426 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003572/0.4896, allocations: 0.7786 MB / 0.5411 GB, free: 4.426 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002036/0.4917, allocations: 1.291 MB / 0.5423 GB, free: 4.277 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006261/0.498, allocations: 2.444 MB / 0.5447 GB, free: 3.676 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01223/0.5102, allocations: 7.527 MB / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5103, allocations: 0 / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.5103, allocations: 3.844 kB / 0.5521 GB, free: 2.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002751/0.5106, allocations: 1.094 kB / 0.5521 GB, free: 2.734 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.01771/0.5283, allocations: 5.082 MB / 0.557 GB, free: 15.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.5284, allocations: 9.344 kB / 0.557 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001907/0.5303, allocations: 0.5576 MB / 0.5576 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006195/0.5365, allocations: 0.9799 MB / 0.5585 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008176/0.5447, allocations: 2.84 MB / 0.5613 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003107/0.545, allocations: 276.4 kB / 0.5616 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001528/0.5466, allocations: 378.9 kB / 0.5619 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01334/0.5599, allocations: 4.767 MB / 0.5666 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.814e-05/0.5601, allocations: 7.953 kB / 0.5666 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004312/0.5605, allocations: 155.8 kB / 0.5668 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001573/0.5607, allocations: 156.2 kB / 0.5669 GB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009691/0.5704, allocations: 4.049 MB / 0.5709 GB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03724/0.6076, allocations: 15.59 MB / 0.5861 GB, free: 6.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008919/0.6166, allocations: 6.936 MB / 0.5929 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003463/0.6201, allocations: 1.499 MB / 0.5943 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01011/0.6302, allocations: 4.165 MB / 0.5984 GB, free: 9.121 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/0.6303, allocations: 47.88 kB / 0.5984 GB, free: 9.062 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.548e-06/0.6303, allocations: 4 kB / 0.5984 GB, free: 9.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01614/0.6465, allocations: 6.417 MB / 0.6047 GB, free: 2.523 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.6466, allocations: 72.7 kB / 0.6048 GB, free: 2.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005212/0.6518, allocations: 2.187 MB / 0.6069 GB, free: 228 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003109/0.6522, allocations: 49.7 kB / 0.607 GB, free: 172 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001738/0.6539, allocations: 1.787 MB / 0.6087 GB, free: 14.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007996/0.6547, allocations: 0.5768 MB / 0.6093 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009884/0.6557, allocations: 408.1 kB / 0.6097 GB, free: 13.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.6559, allocations: 305.1 kB / 0.6099 GB, free: 13.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.6576, allocations: 0.8242 MB / 0.6107 GB, free: 12.27 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002403/0.66, allocations: 1.588 MB / 0.6123 GB, free: 10.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004059/0.6641, allocations: 2.585 MB / 0.6148 GB, free: 7.516 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.027e-05/0.6641, allocations: 8 kB / 0.6148 GB, free: 7.508 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006167/0.6703, allocations: 3.045 MB / 0.6178 GB, free: 4.582 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.577e-05/0.6704, allocations: 19.94 kB / 0.6178 GB, free: 4.562 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.075e-05/0.6705, allocations: 24 kB / 0.6178 GB, free: 4.539 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009528/0.6714, allocations: 303 kB / 0.6181 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002011/0.6734, allocations: 0.4986 MB / 0.6186 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006073/0.6795, allocations: 4.876 MB / 0.6234 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/0.6826, allocations: 95.92 kB / 0.6235 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000549/0.6832, allocations: 108 kB / 0.6236 GB, free: 14.45 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.003485/0.6867, allocations: 1.137 MB / 0.6247 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/0.6877, allocations: 242.5 kB / 0.6249 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005849/0.6936, allocations: 2.406 MB / 0.6273 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/0.6936, allocations: 16 kB / 0.6273 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/0.6937, allocations: 4 kB / 0.6273 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.6937, allocations: 9.094 kB / 0.6273 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/0.7071, allocations: 5.693 MB / 0.6329 GB, free: 4.859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.7072, allocations: 0 / 0.6329 GB, free: 4.859 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001339/0.7085, allocations: 270.8 kB / 0.6331 GB, free: 4.605 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009415/0.7095, allocations: 330.8 kB / 0.6334 GB, free: 4.281 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.7097, allocations: 31.98 kB / 0.6335 GB, free: 4.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007978/0.7177, allocations: 7.021 MB / 0.6403 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.7177, allocations: 128 / 0.6403 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006907/0.7246, allocations: 3.506 MB / 0.6437 GB, free: 9.285 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/0.7264, allocations: 0.4955 MB / 0.6442 GB, free: 8.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009339/0.7274, allocations: 32 kB / 0.6443 GB, free: 8.738 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.7291, allocations: 71.89 kB / 0.6443 GB, free: 8.668 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003577/0.7294, allocations: 112.5 kB / 0.6444 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001442/0.7296, allocations: 43.98 kB / 0.6445 GB, free: 8.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00347/0.7331, allocations: 1.476 MB / 0.6459 GB, free: 7.027 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.494e-06/0.7331, allocations: 0 / 0.6459 GB, free: 7.027 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004195/0.7373, allocations: 0.6561 MB / 0.6466 GB, free: 6.371 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.007856/0.7452, allocations: 4.119 MB / 0.6506 GB, free: 2.195 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005207/0.7504, allocations: 2.469 MB / 0.653 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/0.7505, allocations: 2 kB / 0.653 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003247/0.7537, allocations: 1.413 MB / 0.6544 GB, free: 14.34 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006247/0.76, allocations: 0.5755 MB / 0.6549 GB, free: 13.77 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05489/0.815, allocations: 23.68 MB / 0.6781 GB, free: 5.059 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004263/0.8193, allocations: 2.523 MB / 0.6805 GB, free: 2.504 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002427/0.8218, allocations: 0.5196 MB / 0.681 GB, free: 1.98 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002923/0.8247, allocations: 1.347 MB / 0.6823 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of SimCode: time 1.453e-06/0.8247, allocations: 0 / 0.6823 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3859/1.211, allocations: 57.85 MB / 0.7388 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.61/15.82, allocations: 9.172 kB / 0.7388 GB, free: 179.7 MB / 0.5294 GB (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)