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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008189/0.0008189, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.426/1.426, allocations: 223.2 MB / 239 MB, free: 5.465 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.001019/0.001019, allocations: 176.5 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03263/0.03263, allocations: 8.788 MB / 350.2 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004083/0.0004085, allocations: 11.44 kB / 413.3 MB, free: 42.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09532/0.09575, allocations: 52.56 MB / 465.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01359/0.1094, allocations: 13.92 MB / 479.8 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009285/0.1187, allocations: 4.903 MB / 484.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002621/0.1214, allocations: 87.69 kB / 484.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.1247, allocations: 0.9207 MB / 485.7 MB, free: 9.508 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.005208/0.1299, allocations: 1.282 MB / 486.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002404/0.1323, allocations: 0.6642 MB / 487.6 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007423/0.1398, allocations: 4.656 MB / 492.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004678/0.1445, allocations: 2.448 MB / 494.7 MB, free: 400 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002754/0.1472, allocations: 1.463 MB / 496.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003388/0.1507, allocations: 1.895 MB / 498.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001005/0.1517, allocations: 236 kB / 498.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002005/0.1537, allocations: 435.8 kB / 498.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001246/0.155, allocations: 0.8835 MB / 499.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.1565, allocations: 0.8356 MB / 0.4887 GB, free: 10.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006414/0.163, allocations: 6.112 MB / 0.4947 GB, free: 4.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.163, allocations: 4 kB / 0.4947 GB, free: 4.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.163, allocations: 0 / 0.4947 GB, free: 4.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002279/0.1632, allocations: 0 / 0.4947 GB, free: 4.5 MB / 334.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.01208/0.1753, allocations: 4.249 MB / 0.4988 GB, free: 184 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.356e-05/0.1754, allocations: 11.97 kB / 0.4989 GB, free: 172 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002998/0.1784, allocations: 0.5569 MB / 0.4994 GB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006054/0.1845, allocations: 0.9629 MB / 0.5003 GB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006133/0.1907, allocations: 2.591 MB / 0.5029 GB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/0.191, allocations: 279.4 kB / 0.5031 GB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001111/0.1921, allocations: 360 kB / 0.5035 GB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/0.2044, allocations: 4.761 MB / 0.5081 GB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.2045, allocations: 3.906 kB / 0.5081 GB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007675/0.2053, allocations: 152 kB / 0.5083 GB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001725/0.2055, allocations: 155.4 kB / 0.5084 GB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008691/0.2142, allocations: 4.038 MB / 0.5124 GB, free: 2.211 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03016/0.2444, allocations: 15.91 MB / 0.5279 GB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2452/0.4897, allocations: 6.921 MB / 0.5347 GB, free: 56.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002535/0.4922, allocations: 1.535 MB / 0.5362 GB, free: 56.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006948/0.4992, allocations: 4.241 MB / 0.5403 GB, free: 55.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.4993, allocations: 52.41 kB / 0.5404 GB, free: 55.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.266e-06/0.4993, allocations: 0 / 0.5404 GB, free: 55.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01306/0.5123, allocations: 6.513 MB / 0.5467 GB, free: 54.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.5124, allocations: 72.56 kB / 0.5468 GB, free: 54.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003591/0.516, allocations: 2.218 MB / 0.549 GB, free: 53.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001778/0.5162, allocations: 52.17 kB / 0.549 GB, free: 53.81 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.5173, allocations: 1.714 MB / 0.5507 GB, free: 52.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004077/0.5177, allocations: 0.5412 MB / 0.5512 GB, free: 52.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.528e-05/0.5178, allocations: 40.88 kB / 0.5512 GB, free: 52.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.5179, allocations: 391 kB / 0.5516 GB, free: 51.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.5192, allocations: 0.8255 MB / 0.5524 GB, free: 51.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001539/0.5208, allocations: 1.474 MB / 0.5539 GB, free: 50.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001625/0.5224, allocations: 1.099 MB / 0.5549 GB, free: 49.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/0.5224, allocations: 5.281 kB / 0.5549 GB, free: 49.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.005003/0.5274, allocations: 2.953 MB / 0.5578 GB, free: 48.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.5275, allocations: 12.25 kB / 0.5578 GB, free: 48.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.5e-05/0.5275, allocations: 23.66 kB / 0.5579 GB, free: 48.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007263/0.5283, allocations: 300.8 kB / 0.5581 GB, free: 48.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.5298, allocations: 484.8 kB / 0.5586 GB, free: 48.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.5336, allocations: 4.502 MB / 0.563 GB, free: 44.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/0.5353, allocations: 98.31 kB / 0.5631 GB, free: 44.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.5355, allocations: 91.12 kB / 0.5632 GB, free: 44.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (250): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001896/0.5374, allocations: 1.113 MB / 0.5643 GB, free: 43.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003888/0.5378, allocations: 239 kB / 0.5645 GB, free: 43.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.5413, allocations: 2.436 MB / 0.5669 GB, free: 42.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.5413, allocations: 19.14 kB / 0.5669 GB, free: 42.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.5413, allocations: 3.719 kB / 0.5669 GB, free: 42.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.5413, allocations: 11.78 kB / 0.5669 GB, free: 42.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007049/0.5484, allocations: 5.782 MB / 0.5726 GB, free: 38.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.5484, allocations: 3.938 kB / 0.5726 GB, free: 38.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.5495, allocations: 276.5 kB / 0.5728 GB, free: 38.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007144/0.5502, allocations: 328.4 kB / 0.5731 GB, free: 37.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.557e-05/0.5503, allocations: 39.98 kB / 0.5732 GB, free: 37.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004564/0.5549, allocations: 6.447 MB / 0.5795 GB, free: 31.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.5549, allocations: 4.281 kB / 0.5795 GB, free: 31.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00443/0.5593, allocations: 3.526 MB / 0.5829 GB, free: 27.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.5604, allocations: 0.4943 MB / 0.5834 GB, free: 26.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002833/0.5607, allocations: 35.98 kB / 0.5834 GB, free: 26.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009534/0.5617, allocations: 75.91 kB / 0.5835 GB, free: 26.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.5619, allocations: 117.1 kB / 0.5836 GB, free: 26.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.562, allocations: 40 kB / 0.5837 GB, free: 26.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001969/0.564, allocations: 1.499 MB / 0.5851 GB, free: 25.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.564, allocations: 0 / 0.5851 GB, free: 25.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002276/0.5663, allocations: 0.6552 MB / 0.5858 GB, free: 24.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004474/0.5708, allocations: 4.152 MB / 0.5898 GB, free: 20.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003329/0.5741, allocations: 2.435 MB / 0.5922 GB, free: 17.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5741, allocations: 4.062 kB / 0.5922 GB, free: 17.83 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.5758, allocations: 1.416 MB / 0.5936 GB, free: 16.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002543/0.5783, allocations: 0.5539 MB / 0.5941 GB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03457/0.6129, allocations: 19.68 MB / 0.6133 GB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002798/0.6158, allocations: 2.519 MB / 0.6158 GB, free: 8.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002073/0.6179, allocations: 0.5155 MB / 0.6163 GB, free: 7.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/0.6198, allocations: 1.351 MB / 0.6176 GB, free: 6.309 MB / 382.1 MB Notification: Performance of SimCode: time 1.513e-06/0.6198, allocations: 0 / 0.6176 GB, free: 6.309 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09188/0.7117, allocations: 55.69 MB / 0.672 GB, free: 15.06 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.7119, allocations: 223.6 kB / 0.6722 GB, free: 14.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.868/3.58, allocations: 5.25 kB / 0.6722 GB, free: 14.81 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) Environment - environmentSimulation: