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-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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 103.5 kB / 16.35 MB, free: 5.875 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.46/1.46, allocations: 222.9 MB / 240 MB, free: 4.523 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.00153/0.00153, allocations: 192.5 kB / 290.3 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0344/0.0344, allocations: 8.792 MB / 349.3 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 80.05 kB / 412.5 MB, free: 41.68 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.0994, allocations: 51.56 MB / 464.1 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01769/0.1171, allocations: 15.8 MB / 479.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01191/0.1291, allocations: 5.27 MB / 485.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003781/0.1329, allocations: 91.69 kB / 485.2 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004153/0.1371, allocations: 1.219 MB / 486.5 MB, free: 7.012 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.006161/0.1433, allocations: 1.548 MB / 488 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003339/0.1467, allocations: 0.9742 MB / 489 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007097/0.1538, allocations: 4.691 MB / 493.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004799/0.1586, allocations: 3.532 MB / 497.2 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00363/0.1623, allocations: 2.095 MB / 499.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004378/0.1667, allocations: 2.436 MB / 0.49 GB, free: 7.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001127/0.1678, allocations: 0.582 MB / 0.4905 GB, free: 7.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.1699, allocations: 0.7848 MB / 0.4913 GB, free: 6.258 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001294/0.1712, allocations: 1.285 MB / 0.4926 GB, free: 4.969 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003572/0.1748, allocations: 2.443 MB / 0.495 GB, free: 2.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008048/0.1829, allocations: 7.505 MB / 0.5023 GB, free: 10.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1829, allocations: 0 / 0.5023 GB, free: 10.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1829, allocations: 0 / 0.5023 GB, free: 10.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002544/0.1832, allocations: 0 / 0.5023 GB, free: 10.99 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.01399/0.1972, allocations: 4.97 MB / 0.5071 GB, free: 5.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.1972, allocations: 16.02 kB / 0.5072 GB, free: 5.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005077/0.2023, allocations: 0.9484 MB / 0.5081 GB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006348/0.2087, allocations: 2.828 MB / 0.5108 GB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/0.2089, allocations: 283.8 kB / 0.5111 GB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007364/0.2097, allocations: 368 kB / 0.5115 GB, free: 1.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009721/0.2194, allocations: 4.772 MB / 0.5161 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.689e-05/0.2195, allocations: 3.938 kB / 0.5161 GB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003456/0.2199, allocations: 152 kB / 0.5163 GB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001501/0.22, allocations: 151.4 kB / 0.5164 GB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007606/0.2277, allocations: 4.046 MB / 0.5204 GB, free: 8.289 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2539/0.4816, allocations: 15.54 MB / 0.5355 GB, free: 56.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005455/0.4871, allocations: 6.923 MB / 0.5423 GB, free: 51.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002793/0.4899, allocations: 1.513 MB / 0.5438 GB, free: 51.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008578/0.4985, allocations: 4.16 MB / 0.5478 GB, free: 50.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.4986, allocations: 49.03 kB / 0.5479 GB, free: 50.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.296e-06/0.4986, allocations: 0 / 0.5479 GB, free: 50.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01331/0.5119, allocations: 6.375 MB / 0.5541 GB, free: 47.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.512, allocations: 68.25 kB / 0.5542 GB, free: 47.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003754/0.5157, allocations: 2.181 MB / 0.5563 GB, free: 46.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.5159, allocations: 49.67 kB / 0.5564 GB, free: 46.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00108/0.517, allocations: 1.736 MB / 0.5581 GB, free: 45.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.5174, allocations: 0.5483 MB / 0.5586 GB, free: 44.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005553/0.5179, allocations: 405.6 kB / 0.559 GB, free: 44.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.087e-05/0.518, allocations: 304.2 kB / 0.5593 GB, free: 44.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.5191, allocations: 0.8232 MB / 0.5601 GB, free: 43.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001601/0.5207, allocations: 1.594 MB / 0.5616 GB, free: 42.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002678/0.5234, allocations: 2.585 MB / 0.5642 GB, free: 40.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.5234, allocations: 11.91 kB / 0.5642 GB, free: 40.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004611/0.528, allocations: 3.033 MB / 0.5671 GB, free: 38.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.5281, allocations: 16.66 kB / 0.5671 GB, free: 38.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.5281, allocations: 25.38 kB / 0.5672 GB, free: 38.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007322/0.5289, allocations: 304.6 kB / 0.5675 GB, free: 38.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.5304, allocations: 0.4978 MB / 0.5679 GB, free: 38.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/0.5341, allocations: 4.869 MB / 0.5727 GB, free: 34.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001879/0.536, allocations: 105.6 kB / 0.5728 GB, free: 34.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001442/0.5361, allocations: 98.62 kB / 0.5729 GB, free: 34.27 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.001972/0.5381, allocations: 1.138 MB / 0.574 GB, free: 33.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004007/0.5385, allocations: 232 kB / 0.5742 GB, free: 33.38 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003288/0.5418, allocations: 2.401 MB / 0.5766 GB, free: 31.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.5418, allocations: 18 kB / 0.5766 GB, free: 31.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.5418, allocations: 7.5 kB / 0.5766 GB, free: 31.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.5418, allocations: 11.53 kB / 0.5766 GB, free: 31.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007346/0.5492, allocations: 5.701 MB / 0.5822 GB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.5492, allocations: 4.453 kB / 0.5822 GB, free: 26.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.5503, allocations: 272.8 kB / 0.5824 GB, free: 25.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006769/0.551, allocations: 312.6 kB / 0.5827 GB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.754e-05/0.5511, allocations: 39.98 kB / 0.5828 GB, free: 25.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004648/0.5557, allocations: 7.018 MB / 0.5896 GB, free: 18.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.5558, allocations: 0 / 0.5896 GB, free: 18.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004212/0.56, allocations: 3.488 MB / 0.593 GB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.5611, allocations: 0.4904 MB / 0.5935 GB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.5614, allocations: 32.88 kB / 0.5935 GB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009655/0.5624, allocations: 63.95 kB / 0.5936 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.5626, allocations: 109.1 kB / 0.5937 GB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.309e-05/0.5627, allocations: 51.98 kB / 0.5938 GB, free: 13.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001691/0.5644, allocations: 1.476 MB / 0.5952 GB, free: 12.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5644, allocations: 0 / 0.5952 GB, free: 12.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00219/0.5666, allocations: 0.6484 MB / 0.5958 GB, free: 11.72 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.0003145/0.5669, allocations: 171.3 kB / 0.596 GB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00323/0.5702, allocations: 2.462 MB / 0.5984 GB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.5702, allocations: 10.56 kB / 0.5984 GB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.5718, allocations: 1.405 MB / 0.5998 GB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/0.5743, allocations: 0.5696 MB / 0.6003 GB, free: 7.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.5851, allocations: 6.441 MB / 0.6066 GB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002321/0.5875, allocations: 2.516 MB / 0.6091 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002146/0.5896, allocations: 0.5186 MB / 0.6096 GB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.5901, allocations: 163.4 kB / 0.6098 GB, free: 13.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5901, allocations: 0 / 0.6098 GB, free: 13.39 MB / 382.1 MB Notification: Performance of Templates: time 0.05359/0.6437, allocations: 29.87 MB / 0.6389 GB, free: 15.89 MB / 414.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)