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.001094/0.001094, allocations: 99.62 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.509/1.509, allocations: 223.2 MB / 239 MB, free: 5.5 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.001513/0.001513, allocations: 181 kB / 290.2 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03295/0.03295, allocations: 8.798 MB / 350.1 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004117/0.0004119, allocations: 15.41 kB / 413.1 MB, free: 43.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1087, allocations: 52.56 MB / 465.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01491/0.1236, allocations: 12.72 MB / 478.4 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.1359, allocations: 5.041 MB / 483.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003206/0.1391, allocations: 79.69 kB / 483.5 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003634/0.1428, allocations: 0.9251 MB / 484.4 MB, free: 10.75 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.005273/0.1481, allocations: 1.385 MB / 485.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002333/0.1504, allocations: 0.6664 MB / 486.5 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006214/0.1567, allocations: 3.194 MB / 489.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003632/0.1603, allocations: 2.441 MB / 492.1 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.1635, allocations: 1.432 MB / 493.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004201/0.1677, allocations: 1.727 MB / 495.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009712/0.1687, allocations: 232 kB / 495.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001811/0.1705, allocations: 415.7 kB / 495.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001002/0.1716, allocations: 0.8526 MB / 496.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001239/0.1728, allocations: 0.8395 MB / 497.6 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009483/0.1823, allocations: 6.073 MB / 0.4919 GB, free: 7.406 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1823, allocations: 0 / 0.4919 GB, free: 7.406 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.1824, allocations: 8 kB / 0.4919 GB, free: 7.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002522/0.1826, allocations: 0 / 0.4919 GB, free: 7.398 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.01352/0.1961, allocations: 4.237 MB / 0.496 GB, free: 3.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.1962, allocations: 11.97 kB / 0.496 GB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006178/0.2024, allocations: 0.9592 MB / 0.497 GB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007679/0.2101, allocations: 2.607 MB / 0.4995 GB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003592/0.2105, allocations: 275.4 kB / 0.4998 GB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.2117, allocations: 367.8 kB / 0.5001 GB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009346/0.221, allocations: 4.725 MB / 0.5047 GB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.323e-05/0.2212, allocations: 3.938 kB / 0.5047 GB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003404/0.2215, allocations: 152 kB / 0.5049 GB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.2216, allocations: 155.3 kB / 0.505 GB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007115/0.2288, allocations: 4.038 MB / 0.509 GB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02548/0.2543, allocations: 15.89 MB / 0.5245 GB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2221/0.4764, allocations: 6.924 MB / 0.5312 GB, free: 56.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006445/0.4829, allocations: 3.573 MB / 0.5347 GB, free: 56.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.483, allocations: 54.52 kB / 0.5348 GB, free: 56.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 3.677e-06/0.483, allocations: 0 / 0.5348 GB, free: 56.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=172): time 0.01407/0.4971, allocations: 6.914 MB / 0.5415 GB, free: 54.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.4971, allocations: 70.09 kB / 0.5416 GB, free: 54.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003734/0.5009, allocations: 2.173 MB / 0.5437 GB, free: 54.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.5011, allocations: 54.2 kB / 0.5438 GB, free: 54.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.5023, allocations: 1.679 MB / 0.5454 GB, free: 53.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004324/0.5028, allocations: 0.5847 MB / 0.546 GB, free: 53.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.5029, allocations: 45.22 kB / 0.546 GB, free: 53.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.503, allocations: 397.9 kB / 0.5464 GB, free: 52.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.5043, allocations: 0.8546 MB / 0.5473 GB, free: 52.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.5059, allocations: 1.488 MB / 0.5487 GB, free: 51.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/0.5075, allocations: 1.125 MB / 0.5498 GB, free: 50.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/0.5076, allocations: 6.125 kB / 0.5498 GB, free: 50.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=278) (initialization): time 0.005052/0.5126, allocations: 3.02 MB / 0.5528 GB, free: 49.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.5127, allocations: 13.22 kB / 0.5528 GB, free: 49.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-05/0.5127, allocations: 19.44 kB / 0.5528 GB, free: 49.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007934/0.5135, allocations: 298.3 kB / 0.5531 GB, free: 49.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.5152, allocations: 0.4976 MB / 0.5536 GB, free: 49.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003623/0.5189, allocations: 4.541 MB / 0.558 GB, free: 45.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001983/0.5209, allocations: 94.56 kB / 0.5581 GB, free: 45.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001528/0.521, allocations: 94.69 kB / 0.5582 GB, free: 45.48 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.001912/0.523, allocations: 1.121 MB / 0.5593 GB, free: 44.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004045/0.5234, allocations: 239.3 kB / 0.5595 GB, free: 44.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003656/0.527, allocations: 2.566 MB / 0.562 GB, free: 43.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.5271, allocations: 17.52 kB / 0.562 GB, free: 43.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.5271, allocations: 3.938 kB / 0.562 GB, free: 43.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.5271, allocations: 7.406 kB / 0.562 GB, free: 43.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008812/0.5359, allocations: 6.074 MB / 0.568 GB, free: 39.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5359, allocations: 0 / 0.568 GB, free: 39.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.5371, allocations: 308 kB / 0.5683 GB, free: 39.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006988/0.5378, allocations: 324 kB / 0.5686 GB, free: 39.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.759e-05/0.5379, allocations: 38.95 kB / 0.5686 GB, free: 39.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004788/0.5427, allocations: 6.509 MB / 0.575 GB, free: 33.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.5427, allocations: 4 kB / 0.575 GB, free: 33.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004778/0.5475, allocations: 3.881 MB / 0.5788 GB, free: 29.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/0.5487, allocations: 0.5079 MB / 0.5792 GB, free: 28.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002835/0.549, allocations: 39.89 kB / 0.5793 GB, free: 28.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.55, allocations: 75.95 kB / 0.5794 GB, free: 28.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/0.5503, allocations: 126.6 kB / 0.5795 GB, free: 28.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.585e-05/0.5504, allocations: 51.98 kB / 0.5795 GB, free: 28.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001875/0.5522, allocations: 1.471 MB / 0.581 GB, free: 26.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5522, allocations: 0 / 0.581 GB, free: 26.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002329/0.5546, allocations: 0.6602 MB / 0.5816 GB, free: 26.09 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.0003186/0.5549, allocations: 170.7 kB / 0.5818 GB, free: 25.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003298/0.5582, allocations: 2.529 MB / 0.5842 GB, free: 23.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5582, allocations: 3.938 kB / 0.5842 GB, free: 23.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.5599, allocations: 1.484 MB / 0.5857 GB, free: 21.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.5621, allocations: 0.5353 MB / 0.5862 GB, free: 21.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.5731, allocations: 7.861 MB / 0.5939 GB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.575, allocations: 2.581 MB / 0.5964 GB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001871/0.5768, allocations: 0.5234 MB / 0.5969 GB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003857/0.5772, allocations: 155.4 kB / 0.5971 GB, free: 10.11 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5772, allocations: 0 / 0.5971 GB, free: 10.11 MB / 366.1 MB Notification: Performance of Templates: time 0.05789/0.6351, allocations: 30.21 MB / 0.6266 GB, free: 12.19 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: