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: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008238/0.0008239, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.344/1.344, allocations: 223.3 MB / 239.4 MB, free: 5.527 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.001039/0.001039, allocations: 184.5 kB / 290.6 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03284/0.03284, allocations: 8.798 MB / 350.5 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003453/0.0003454, allocations: 12.06 kB / 413.8 MB, free: 42.8 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1011, allocations: 52.56 MB / 466.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01517/0.1163, allocations: 14.9 MB / 481.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.1278, allocations: 5.158 MB / 486.4 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002739/0.1306, allocations: 87.69 kB / 486.5 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004424/0.135, allocations: 1.065 MB / 487.6 MB, free: 7.848 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.005995/0.141, allocations: 1.395 MB / 489 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002553/0.1436, allocations: 0.8988 MB / 489.9 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006936/0.1506, allocations: 4.993 MB / 494.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005085/0.1557, allocations: 2.898 MB / 497.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002907/0.1586, allocations: 1.497 MB / 499.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003574/0.1622, allocations: 1.975 MB / 0.4895 GB, free: 10.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001266/0.1635, allocations: 236 kB / 0.4897 GB, free: 9.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002698/0.1662, allocations: 451.7 kB / 0.4901 GB, free: 9.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001983/0.1682, allocations: 0.8987 MB / 0.491 GB, free: 8.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004362/0.1726, allocations: 2.023 MB / 0.493 GB, free: 6.469 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008113/0.1808, allocations: 7.015 MB / 0.4998 GB, free: 15.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1808, allocations: 0 / 0.4998 GB, free: 15.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1808, allocations: 0 / 0.4998 GB, free: 15.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002077/0.181, allocations: 0 / 0.4998 GB, free: 15.43 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.01136/0.1924, allocations: 4.218 MB / 0.504 GB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1925, allocations: 8.031 kB / 0.504 GB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005726/0.1982, allocations: 0.9601 MB / 0.5049 GB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006584/0.2048, allocations: 2.653 MB / 0.5075 GB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002996/0.2051, allocations: 279.8 kB / 0.5078 GB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001084/0.2062, allocations: 372 kB / 0.5081 GB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01154/0.2178, allocations: 4.784 MB / 0.5128 GB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.25e-05/0.2179, allocations: 7.938 kB / 0.5128 GB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003657/0.2183, allocations: 152 kB / 0.513 GB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.2185, allocations: 155.3 kB / 0.5131 GB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007734/0.2262, allocations: 4.062 MB / 0.5171 GB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2423/0.4685, allocations: 15.91 MB / 0.5326 GB, free: 58.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005684/0.4742, allocations: 6.946 MB / 0.5394 GB, free: 53.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002671/0.4769, allocations: 1.534 MB / 0.5409 GB, free: 53.08 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007687/0.4846, allocations: 4.254 MB / 0.545 GB, free: 52.26 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.4847, allocations: 49.45 kB / 0.5451 GB, free: 52.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.096e-06/0.4847, allocations: 1.375 kB / 0.5451 GB, free: 52.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01258/0.4973, allocations: 6.509 MB / 0.5514 GB, free: 50.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.4974, allocations: 67.69 kB / 0.5515 GB, free: 50.63 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003354/0.5007, allocations: 2.232 MB / 0.5537 GB, free: 50.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001471/0.5009, allocations: 51.7 kB / 0.5537 GB, free: 49.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.502, allocations: 1.704 MB / 0.5554 GB, free: 48.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004851/0.5025, allocations: 0.5444 MB / 0.5559 GB, free: 48.24 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003008/0.5029, allocations: 180.8 kB / 0.5561 GB, free: 48.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.241e-05/0.5029, allocations: 305.1 kB / 0.5564 GB, free: 47.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.5041, allocations: 0.8284 MB / 0.5572 GB, free: 47.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001379/0.5055, allocations: 1.487 MB / 0.5587 GB, free: 46.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002637/0.5082, allocations: 2.465 MB / 0.5611 GB, free: 44.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/0.5082, allocations: 6.719 kB / 0.5611 GB, free: 44.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004483/0.5127, allocations: 2.976 MB / 0.564 GB, free: 43.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.832e-05/0.5127, allocations: 16.44 kB / 0.564 GB, free: 43.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/0.5128, allocations: 19.97 kB / 0.564 GB, free: 43.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000787/0.5136, allocations: 300.8 kB / 0.5643 GB, free: 43.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.5152, allocations: 487.6 kB / 0.5648 GB, free: 42.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003698/0.5189, allocations: 4.518 MB / 0.5692 GB, free: 39.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.5208, allocations: 91.06 kB / 0.5693 GB, free: 38.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/0.521, allocations: 95.55 kB / 0.5693 GB, free: 38.95 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 (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.00194/0.5229, allocations: 1.123 MB / 0.5704 GB, free: 38.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00048/0.5234, allocations: 233.9 kB / 0.5707 GB, free: 38.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003704/0.5271, allocations: 2.438 MB / 0.5731 GB, free: 36.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.5272, allocations: 16.75 kB / 0.5731 GB, free: 36.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.5272, allocations: 2.312 kB / 0.5731 GB, free: 36.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.5272, allocations: 15.06 kB / 0.5731 GB, free: 36.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007919/0.5351, allocations: 5.805 MB / 0.5788 GB, free: 31.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.5352, allocations: 4 kB / 0.5788 GB, free: 31.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.5363, allocations: 275.8 kB / 0.579 GB, free: 31.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007772/0.5371, allocations: 330.6 kB / 0.5793 GB, free: 30.91 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.721e-05/0.5372, allocations: 39.98 kB / 0.5794 GB, free: 30.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004713/0.5419, allocations: 6.439 MB / 0.5857 GB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.5419, allocations: 7.969 kB / 0.5857 GB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004604/0.5465, allocations: 3.552 MB / 0.5891 GB, free: 20.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.5476, allocations: 0.4943 MB / 0.5896 GB, free: 19.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002903/0.5479, allocations: 28 kB / 0.5896 GB, free: 19.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.549, allocations: 75.95 kB / 0.5897 GB, free: 19.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.5493, allocations: 121 kB / 0.5898 GB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.249e-05/0.5494, allocations: 48.03 kB / 0.5899 GB, free: 19.63 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001907/0.5513, allocations: 1.511 MB / 0.5914 GB, free: 18.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5513, allocations: 4 kB / 0.5914 GB, free: 18.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002146/0.5535, allocations: 0.6554 MB / 0.592 GB, free: 17.45 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.0003035/0.5538, allocations: 163.6 kB / 0.5922 GB, free: 17.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.557, allocations: 2.453 MB / 0.5946 GB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.557, allocations: 384 / 0.5946 GB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001684/0.5587, allocations: 1.423 MB / 0.5959 GB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/0.5617, allocations: 0.5417 MB / 0.5965 GB, free: 12.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.5719, allocations: 8.199 MB / 0.6045 GB, free: 4.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001893/0.5738, allocations: 2.511 MB / 0.6069 GB, free: 2.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00209/0.5759, allocations: 0.5116 MB / 0.6074 GB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004336/0.5764, allocations: 155.4 kB / 0.6076 GB, free: 1.348 MB / 366.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5764, allocations: 4 kB / 0.6076 GB, free: 1.344 MB / 366.1 MB Notification: Performance of Templates: time 0.05306/0.6295, allocations: 30.88 MB / 0.6377 GB, free: 2.742 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile Environment - environmentSimulation: (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) Environment - environmentSimulation: