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/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_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.0009463/0.0009463, allocations: 98.44 kB / 15.05 MB, free: 1.105 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.298/1.298, allocations: 223.2 MB / 238.9 MB, free: 5.672 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.001064/0.001063, allocations: 193 kB / 290.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03198/0.03198, allocations: 8.789 MB / 350.1 MB, free: 4.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004803, allocations: 13.33 kB / 413.2 MB, free: 43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.09932, allocations: 52.56 MB / 465.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01307/0.1124, allocations: 12.72 MB / 478.5 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009928/0.1224, allocations: 5.049 MB / 483.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002824/0.1253, allocations: 79.69 kB / 483.6 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003237/0.1286, allocations: 0.9211 MB / 484.5 MB, free: 10.7 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.005447/0.134, allocations: 1.387 MB / 485.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.1363, allocations: 0.6659 MB / 486.6 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005796/0.1421, allocations: 3.192 MB / 489.7 MB, free: 5.449 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00294/0.1451, allocations: 2.448 MB / 492.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002003/0.1471, allocations: 1.428 MB / 493.6 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002138/0.1492, allocations: 1.723 MB / 495.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003897/0.1496, allocations: 232 kB / 495.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.1507, allocations: 415.7 kB / 496 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006774/0.1514, allocations: 0.8526 MB / 496.8 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008289/0.1522, allocations: 0.8434 MB / 497.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005306/0.1576, allocations: 6.069 MB / 0.4919 GB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1576, allocations: 0 / 0.4919 GB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1576, allocations: 0 / 0.4919 GB, free: 7.359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001772/0.1578, allocations: 0 / 0.4919 GB, free: 7.359 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.01033/0.1681, allocations: 4.249 MB / 0.4961 GB, free: 3.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1682, allocations: 16.03 kB / 0.4961 GB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001326/0.1695, allocations: 0.549 MB / 0.4966 GB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005075/0.1746, allocations: 0.9591 MB / 0.4976 GB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005726/0.1803, allocations: 2.611 MB / 0.5001 GB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002178/0.1806, allocations: 279.4 kB / 0.5004 GB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007576/0.1814, allocations: 368 kB / 0.5007 GB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008832/0.1902, allocations: 4.722 MB / 0.5054 GB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.826e-05/0.1903, allocations: 7.75 kB / 0.5054 GB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003185/0.1906, allocations: 148 kB / 0.5055 GB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001384/0.1908, allocations: 159.3 kB / 0.5057 GB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007934/0.1987, allocations: 4.038 MB / 0.5096 GB, free: 5.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02663/0.2254, allocations: 15.87 MB / 0.5251 GB, free: 4.715 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2018/0.4273, allocations: 6.931 MB / 0.5319 GB, free: 56.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006235/0.4336, allocations: 3.583 MB / 0.5354 GB, free: 56.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.4336, allocations: 46.03 kB / 0.5354 GB, free: 56.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 3.847e-06/0.4336, allocations: 0 / 0.5354 GB, free: 56.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01283/0.4465, allocations: 6.918 MB / 0.5422 GB, free: 54.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.4465, allocations: 73.78 kB / 0.5422 GB, free: 54.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003559/0.4501, allocations: 2.173 MB / 0.5444 GB, free: 54.22 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.4503, allocations: 58.02 kB / 0.5444 GB, free: 54.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.4513, allocations: 1.686 MB / 0.5461 GB, free: 53.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003762/0.4517, allocations: 0.5802 MB / 0.5466 GB, free: 53.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.477e-05/0.4518, allocations: 45.59 kB / 0.5467 GB, free: 52.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.4519, allocations: 389.1 kB / 0.547 GB, free: 52.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.4532, allocations: 0.8591 MB / 0.5479 GB, free: 52.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.4547, allocations: 1.485 MB / 0.5493 GB, free: 51.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.4562, allocations: 1.128 MB / 0.5504 GB, free: 50.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/0.4562, allocations: 4.719 kB / 0.5504 GB, free: 50.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.005101/0.4613, allocations: 3.018 MB / 0.5534 GB, free: 49.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.119e-05/0.4614, allocations: 15.05 kB / 0.5534 GB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.582e-05/0.4615, allocations: 20.19 kB / 0.5534 GB, free: 49.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008704/0.4624, allocations: 304.8 kB / 0.5537 GB, free: 49.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001771/0.4641, allocations: 0.494 MB / 0.5542 GB, free: 49.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00393/0.4681, allocations: 4.535 MB / 0.5586 GB, free: 45.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002202/0.4703, allocations: 95.05 kB / 0.5587 GB, free: 45.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000208/0.4705, allocations: 98.7 kB / 0.5588 GB, free: 45.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 88 * 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 (258): * Single equations (assignments): 255 * 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.002564/0.4731, allocations: 1.124 MB / 0.5599 GB, free: 44.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008052/0.4739, allocations: 238 kB / 0.5601 GB, free: 44.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003927/0.4778, allocations: 2.562 MB / 0.5626 GB, free: 43.33 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/0.4779, allocations: 21.5 kB / 0.5627 GB, free: 43.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/0.4779, allocations: 4.5 kB / 0.5627 GB, free: 43.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.4779, allocations: 7.547 kB / 0.5627 GB, free: 43.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008243/0.4862, allocations: 6.064 MB / 0.5686 GB, free: 39.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.4862, allocations: 3.469 kB / 0.5686 GB, free: 39.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.4874, allocations: 315.4 kB / 0.5689 GB, free: 39.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007071/0.4881, allocations: 317.9 kB / 0.5692 GB, free: 39.31 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.819e-05/0.4882, allocations: 49.89 kB / 0.5692 GB, free: 39.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004789/0.493, allocations: 6.498 MB / 0.5756 GB, free: 33.14 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.493, allocations: 4 kB / 0.5756 GB, free: 33.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004981/0.498, allocations: 3.893 MB / 0.5794 GB, free: 29.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.4992, allocations: 0.5059 MB / 0.5799 GB, free: 28.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.4994, allocations: 32 kB / 0.5799 GB, free: 28.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.5005, allocations: 79.91 kB / 0.58 GB, free: 28.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.5007, allocations: 121.1 kB / 0.5801 GB, free: 28.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.609e-05/0.5008, allocations: 51.98 kB / 0.5802 GB, free: 28.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001799/0.5026, allocations: 1.472 MB / 0.5816 GB, free: 26.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5026, allocations: 3.938 kB / 0.5816 GB, free: 26.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002196/0.5048, allocations: 0.6629 MB / 0.5822 GB, free: 26.13 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (146): * Single equations (assignments): 143 * 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.004638/0.5095, allocations: 5.064 MB / 0.5872 GB, free: 20.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003399/0.5129, allocations: 2.521 MB / 0.5897 GB, free: 18.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.5129, allocations: 4 kB / 0.5897 GB, free: 18.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001621/0.5145, allocations: 1.489 MB / 0.5911 GB, free: 16.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.5166, allocations: 0.5346 MB / 0.5916 GB, free: 16.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03868/0.5553, allocations: 32.74 MB / 0.6236 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002194/0.5576, allocations: 2.589 MB / 0.6261 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001951/0.5595, allocations: 0.5227 MB / 0.6266 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001591/0.5611, allocations: 1.347 MB / 0.628 GB, free: 9.566 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5611, allocations: 0 / 0.628 GB, free: 9.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09163/0.6528, allocations: 55.93 MB / 0.6826 GB, free: 2.074 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001906/0.653, allocations: 210.4 kB / 0.6828 GB, free: 1.832 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.857/3.51, allocations: 0 / 0.6828 GB, free: 1.832 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) Environment - environmentSimulation: