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.007338/0.007338, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.51/1.51, 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.001597/0.001597, allocations: 192.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03467/0.03467, allocations: 8.798 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 79.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1248, 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.01967/0.1446, allocations: 15.81 MB / 0.5184 GB, free: 10.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01288/0.1575, allocations: 5.274 MB / 0.5235 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005521/0.1631, allocations: 91.69 kB / 0.5236 GB, free: 4.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005314/0.1685, allocations: 1.25 MB / 0.5249 GB, free: 3.422 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.007622/0.1761, allocations: 1.596 MB / 0.5264 GB, free: 1.816 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003211/0.1794, allocations: 0.9831 MB / 0.5274 GB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.309/0.4884, allocations: 4.682 MB / 0.5319 GB, free: 5.684 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007541/0.496, allocations: 3.525 MB / 0.5354 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004252/0.5003, allocations: 2.118 MB / 0.5375 GB, free: 4.812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004981/0.5053, allocations: 2.438 MB / 0.5398 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002062/0.5074, allocations: 0.5714 MB / 0.5404 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003245/0.5106, allocations: 0.7826 MB / 0.5412 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002511/0.5132, allocations: 1.291 MB / 0.5424 GB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006731/0.5199, allocations: 2.441 MB / 0.5448 GB, free: 3.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01755/0.5375, allocations: 7.527 MB / 0.5522 GB, free: 2.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.5375, allocations: 3.938 kB / 0.5522 GB, free: 2.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.5375, allocations: 1.156 kB / 0.5522 GB, free: 2.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003511/0.5379, allocations: 0 / 0.5522 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.0229/0.5608, allocations: 5.079 MB / 0.5571 GB, free: 15.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.479e-05/0.5609, allocations: 14.81 kB / 0.5571 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002737/0.5637, allocations: 0.5576 MB / 0.5577 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006561/0.5702, allocations: 0.9738 MB / 0.5586 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009692/0.58, allocations: 2.84 MB / 0.5614 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002835/0.5803, allocations: 278.2 kB / 0.5617 GB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001635/0.582, allocations: 366.8 kB / 0.562 GB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01319/0.5952, allocations: 4.778 MB / 0.5667 GB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/0.5953, allocations: 6.828 kB / 0.5667 GB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006413/0.596, allocations: 155.7 kB / 0.5668 GB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001893/0.5962, allocations: 154.4 kB / 0.567 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008735/0.6049, allocations: 4.049 MB / 0.5709 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0315/0.6365, allocations: 15.6 MB / 0.5862 GB, free: 6.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007091/0.6436, allocations: 6.933 MB / 0.5929 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002893/0.6465, allocations: 1.503 MB / 0.5944 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009423/0.656, allocations: 4.149 MB / 0.5985 GB, free: 9.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.124e-05/0.6561, allocations: 55.86 kB / 0.5985 GB, free: 9.059 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.278e-06/0.6561, allocations: 0 / 0.5985 GB, free: 9.059 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01513/0.6713, allocations: 6.424 MB / 0.6048 GB, free: 2.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.6713, allocations: 68.72 kB / 0.6049 GB, free: 2.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004907/0.6763, allocations: 2.187 MB / 0.607 GB, free: 228 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002872/0.6766, allocations: 49.7 kB / 0.607 GB, free: 172 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001658/0.6783, allocations: 1.788 MB / 0.6088 GB, free: 14.38 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007728/0.6791, allocations: 0.5751 MB / 0.6093 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008813/0.68, allocations: 408.1 kB / 0.6097 GB, free: 13.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.6801, allocations: 305.1 kB / 0.61 GB, free: 13.1 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001508/0.6816, allocations: 0.8242 MB / 0.6108 GB, free: 12.27 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002142/0.6838, allocations: 1.589 MB / 0.6124 GB, free: 10.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003764/0.6875, allocations: 2.589 MB / 0.6149 GB, free: 7.508 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.65e-05/0.6876, allocations: 4 kB / 0.6149 GB, free: 7.504 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005824/0.6934, allocations: 3.043 MB / 0.6179 GB, free: 4.582 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.08e-05/0.6935, allocations: 24.06 kB / 0.6179 GB, free: 4.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.59e-05/0.6935, allocations: 24 kB / 0.6179 GB, free: 4.535 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008833/0.6944, allocations: 299 kB / 0.6182 GB, free: 4.234 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001902/0.6963, allocations: 0.495 MB / 0.6187 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005301/0.7017, allocations: 4.878 MB / 0.6235 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003172/0.7049, allocations: 101.2 kB / 0.6236 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005539/0.7055, allocations: 104 kB / 0.6237 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.00341/0.7089, allocations: 1.133 MB / 0.6248 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/0.7099, allocations: 242.5 kB / 0.625 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005296/0.7153, allocations: 2.41 MB / 0.6273 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.369e-05/0.7153, allocations: 16 kB / 0.6274 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.278e-05/0.7153, allocations: 4 kB / 0.6274 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.7154, allocations: 7.969 kB / 0.6274 GB, free: 10.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/0.7294, allocations: 5.7 MB / 0.6329 GB, free: 4.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.7295, allocations: 0 / 0.6329 GB, free: 4.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.7308, allocations: 277.8 kB / 0.6332 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008989/0.7317, allocations: 319.2 kB / 0.6335 GB, free: 4.281 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/0.7319, allocations: 40.05 kB / 0.6336 GB, free: 4.242 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006948/0.7388, allocations: 7.028 MB / 0.6404 GB, free: 12.85 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.7389, allocations: 0 / 0.6404 GB, free: 12.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006492/0.7454, allocations: 3.498 MB / 0.6438 GB, free: 9.277 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/0.7472, allocations: 0.4916 MB / 0.6443 GB, free: 8.766 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000805/0.7481, allocations: 35.98 kB / 0.6443 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001789/0.7499, allocations: 67.89 kB / 0.6444 GB, free: 8.664 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000324/0.7502, allocations: 116.2 kB / 0.6445 GB, free: 8.555 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.7503, allocations: 43.98 kB / 0.6446 GB, free: 8.512 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003282/0.7536, allocations: 1.479 MB / 0.646 GB, free: 7.016 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7536, allocations: 0 / 0.646 GB, free: 7.016 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003598/0.7572, allocations: 0.6523 MB / 0.6466 GB, free: 6.363 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.006295/0.7635, allocations: 4.117 MB / 0.6507 GB, free: 2.188 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004268/0.7678, allocations: 2.467 MB / 0.6531 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.7679, allocations: 0 / 0.6531 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/0.7702, allocations: 1.417 MB / 0.6545 GB, free: 14.33 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004137/0.7744, allocations: 0.5721 MB / 0.655 GB, free: 13.76 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03991/0.8143, allocations: 23.68 MB / 0.6781 GB, free: 5.07 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002519/0.8169, allocations: 2.53 MB / 0.6806 GB, free: 2.508 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002234/0.8191, allocations: 0.5118 MB / 0.6811 GB, free: 1.992 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002556/0.8217, allocations: 1.347 MB / 0.6824 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of SimCode: time 2.545e-06/0.8217, allocations: 8 kB / 0.6824 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4614/1.283, allocations: 57.85 MB / 0.7389 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/15.29, allocations: 7.281 kB / 0.7389 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)