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.001127/0.001127, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 222.9 MB / 239.3 MB, free: 4.605 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.001604/0.001604, allocations: 184.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03773/0.03773, allocations: 8.803 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 77.73 kB / 411.2 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1065, allocations: 51.57 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01712/0.1236, allocations: 15.81 MB / 478.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.1354, allocations: 5.266 MB / 483.8 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003672/0.1391, allocations: 99.56 kB / 483.9 MB, free: 9.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00465/0.1438, allocations: 1.219 MB / 485.1 MB, free: 7.797 MB / 318.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.006874/0.1507, allocations: 1.545 MB / 486.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003749/0.1545, allocations: 0.97 MB / 487.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008133/0.1626, allocations: 4.677 MB / 492.3 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006714/0.1694, allocations: 3.52 MB / 495.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00424/0.1737, allocations: 2.103 MB / 498 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005115/0.1789, allocations: 2.424 MB / 0.4887 GB, free: 8.449 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002307/0.1812, allocations: 0.5742 MB / 0.4892 GB, free: 7.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003317/0.1845, allocations: 0.7927 MB / 0.49 GB, free: 7.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002555/0.1871, allocations: 1.289 MB / 0.4913 GB, free: 5.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006732/0.1939, allocations: 2.443 MB / 0.4936 GB, free: 3.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.2065, allocations: 7.443 MB / 0.5009 GB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.639e-05/0.2065, allocations: 8 kB / 0.5009 GB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2065, allocations: 0 / 0.5009 GB, free: 11.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002879/0.2068, allocations: 0 / 0.5009 GB, free: 11.86 MB / 350.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.01726/0.2241, allocations: 4.97 MB / 0.5058 GB, free: 6.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.2242, allocations: 15.97 kB / 0.5058 GB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002114/0.2263, allocations: 0.557 MB / 0.5063 GB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006432/0.2328, allocations: 0.9561 MB / 0.5073 GB, free: 5.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008788/0.2416, allocations: 2.758 MB / 0.51 GB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003915/0.242, allocations: 275.8 kB / 0.5102 GB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00192/0.244, allocations: 371.9 kB / 0.5106 GB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0159/0.2599, allocations: 4.772 MB / 0.5152 GB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002123/0.2602, allocations: 3.906 kB / 0.5152 GB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001316/0.2615, allocations: 152 kB / 0.5154 GB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002035/0.2617, allocations: 155.3 kB / 0.5155 GB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009892/0.2716, allocations: 4.042 MB / 0.5195 GB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2494/0.521, allocations: 15.75 MB / 0.5349 GB, free: 56.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00616/0.5272, allocations: 6.922 MB / 0.5416 GB, free: 51.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002695/0.53, allocations: 1.51 MB / 0.5431 GB, free: 51.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007322/0.5373, allocations: 4.181 MB / 0.5472 GB, free: 50.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.5374, allocations: 49.33 kB / 0.5472 GB, free: 50.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.206e-06/0.5374, allocations: 0 / 0.5472 GB, free: 50.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01279/0.5502, allocations: 6.367 MB / 0.5534 GB, free: 48.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.5502, allocations: 68.56 kB / 0.5535 GB, free: 48.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003421/0.5537, allocations: 2.189 MB / 0.5556 GB, free: 47.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001921/0.5539, allocations: 54.7 kB / 0.5557 GB, free: 47.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009573/0.5549, allocations: 1.73 MB / 0.5574 GB, free: 45.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003692/0.5552, allocations: 0.5379 MB / 0.5579 GB, free: 45.35 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004996/0.5557, allocations: 409.8 kB / 0.5583 GB, free: 45.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.199e-05/0.5558, allocations: 309.1 kB / 0.5586 GB, free: 44.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.557, allocations: 0.8232 MB / 0.5594 GB, free: 44.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/0.5584, allocations: 1.592 MB / 0.561 GB, free: 42.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002631/0.5611, allocations: 2.59 MB / 0.5635 GB, free: 40.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.251e-05/0.5611, allocations: 7.469 kB / 0.5635 GB, free: 40.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004546/0.5657, allocations: 3.029 MB / 0.5664 GB, free: 39.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.5657, allocations: 17.22 kB / 0.5665 GB, free: 39.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.057e-05/0.5658, allocations: 26.69 kB / 0.5665 GB, free: 39.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007816/0.5666, allocations: 312.4 kB / 0.5668 GB, free: 39.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.5682, allocations: 0.5009 MB / 0.5673 GB, free: 38.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003697/0.5719, allocations: 4.87 MB / 0.572 GB, free: 34.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.5738, allocations: 103 kB / 0.5721 GB, free: 34.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.5739, allocations: 102.7 kB / 0.5722 GB, free: 34.6 MB / 366.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.001765/0.5757, allocations: 1.136 MB / 0.5733 GB, free: 33.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000408/0.5761, allocations: 238.7 kB / 0.5736 GB, free: 33.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00331/0.5794, allocations: 2.399 MB / 0.5759 GB, free: 32.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.5794, allocations: 20.38 kB / 0.5759 GB, free: 32.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.5795, allocations: 4 kB / 0.5759 GB, free: 32.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.5795, allocations: 7.969 kB / 0.5759 GB, free: 32.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007346/0.5868, allocations: 5.708 MB / 0.5815 GB, free: 26.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.5869, allocations: 4 kB / 0.5815 GB, free: 26.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.588, allocations: 271.6 kB / 0.5818 GB, free: 26.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007048/0.5887, allocations: 317.6 kB / 0.5821 GB, free: 25.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.12e-05/0.5888, allocations: 36 kB / 0.5821 GB, free: 25.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004726/0.5935, allocations: 7.025 MB / 0.589 GB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.5935, allocations: 80 / 0.589 GB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004631/0.5982, allocations: 3.497 MB / 0.5924 GB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/0.5994, allocations: 490.2 kB / 0.5929 GB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003071/0.5997, allocations: 36 kB / 0.5929 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.6007, allocations: 63.95 kB / 0.593 GB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.601, allocations: 113.1 kB / 0.5931 GB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.967e-05/0.601, allocations: 53.34 kB / 0.5931 GB, free: 14.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001834/0.6029, allocations: 1.474 MB / 0.5945 GB, free: 12.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6029, allocations: 192 / 0.5945 GB, free: 12.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002147/0.605, allocations: 0.6484 MB / 0.5952 GB, free: 11.88 MB / 366.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.004377/0.6094, allocations: 4.111 MB / 0.5992 GB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005478/0.6149, allocations: 3.034 MB / 0.6022 GB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.615, allocations: 64 / 0.6022 GB, free: 4.629 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.6166, allocations: 1.409 MB / 0.6035 GB, free: 3.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/0.6193, allocations: 0.5786 MB / 0.6041 GB, free: 2.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0412/0.6605, allocations: 27.04 MB / 0.6305 GB, free: 5.062 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00224/0.6628, allocations: 2.511 MB / 0.633 GB, free: 2.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002125/0.6649, allocations: 0.5274 MB / 0.6335 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001653/0.6666, allocations: 1.347 MB / 0.6348 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6666, allocations: 0 / 0.6348 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1524/0.819, allocations: 58.41 MB / 0.6918 GB, free: 6.617 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/11.15, allocations: 18.12 kB / 0.6919 GB, free: 6.602 MB / 462.1 MB (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)