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-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_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.446/1.446, allocations: 222.9 MB / 239.6 MB, free: 4.727 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.0014/0.0014, allocations: 200.4 kB / 289.9 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03401/0.03401, allocations: 8.789 MB / 348.9 MB, free: 4.859 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 78.28 kB / 411.2 MB, free: 42.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1236, allocations: 51.57 MB / 462.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01779/0.1415, allocations: 15.61 MB / 478.4 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.1544, allocations: 5.197 MB / 483.6 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004204/0.1587, allocations: 87.69 kB / 483.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004682/0.1634, allocations: 1.069 MB / 484.8 MB, free: 8.711 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.006537/0.17, allocations: 1.405 MB / 486.2 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003402/0.1734, allocations: 0.8811 MB / 487.1 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008105/0.1815, allocations: 4.811 MB / 491.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007003/0.1885, allocations: 3.517 MB / 495.4 MB, free: 14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004524/0.1931, allocations: 2.005 MB / 497.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004731/0.1979, allocations: 2.417 MB / 499.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002105/0.2, allocations: 0.5625 MB / 0.4886 GB, free: 9.004 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/0.2033, allocations: 0.7927 MB / 0.4894 GB, free: 8.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.2057, allocations: 1.285 MB / 0.4907 GB, free: 6.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005948/0.2117, allocations: 2.431 MB / 0.4931 GB, free: 4.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009393/0.2211, allocations: 6.345 MB / 0.4992 GB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.2211, allocations: 0 / 0.4992 GB, free: 14.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.2211, allocations: 0 / 0.4992 GB, free: 14.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002941/0.2214, allocations: 3.938 kB / 0.4993 GB, free: 14.12 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.01781/0.2392, allocations: 4.962 MB / 0.5041 GB, free: 9.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.2393, allocations: 15.97 kB / 0.5041 GB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006202/0.2455, allocations: 0.9523 MB / 0.505 GB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007075/0.2526, allocations: 2.649 MB / 0.5076 GB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/0.253, allocations: 271.8 kB / 0.5079 GB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001193/0.2542, allocations: 376 kB / 0.5082 GB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01214/0.2663, allocations: 4.776 MB / 0.5129 GB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.2e-05/0.2664, allocations: 4 kB / 0.5129 GB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00045/0.2669, allocations: 151.9 kB / 0.5131 GB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001606/0.2671, allocations: 159.3 kB / 0.5132 GB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009197/0.2763, allocations: 4.046 MB / 0.5172 GB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2779/0.5542, allocations: 15.81 MB / 0.5326 GB, free: 57.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006135/0.5604, allocations: 6.946 MB / 0.5394 GB, free: 52.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002846/0.5633, allocations: 1.528 MB / 0.5409 GB, free: 52.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008612/0.5719, allocations: 4.225 MB / 0.545 GB, free: 51.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.572, allocations: 54.62 kB / 0.5451 GB, free: 51.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 4.348e-06/0.572, allocations: 0 / 0.5451 GB, free: 51.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01426/0.5863, allocations: 6.466 MB / 0.5514 GB, free: 49.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.5864, allocations: 72.97 kB / 0.5514 GB, free: 49.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004353/0.5907, allocations: 2.233 MB / 0.5536 GB, free: 48.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002415/0.591, allocations: 49.67 kB / 0.5537 GB, free: 48.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.5921, allocations: 1.702 MB / 0.5553 GB, free: 47.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004595/0.5925, allocations: 0.557 MB / 0.5559 GB, free: 47.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00057/0.5931, allocations: 385.5 kB / 0.5562 GB, free: 46.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.622e-05/0.5932, allocations: 305.1 kB / 0.5565 GB, free: 46.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.5943, allocations: 0.8257 MB / 0.5573 GB, free: 46.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001399/0.5958, allocations: 1.479 MB / 0.5588 GB, free: 45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002696/0.5985, allocations: 2.445 MB / 0.5612 GB, free: 43.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.5985, allocations: 8.5 kB / 0.5612 GB, free: 43.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004517/0.603, allocations: 2.959 MB / 0.5641 GB, free: 41.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.6031, allocations: 16.12 kB / 0.5641 GB, free: 41.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.497e-05/0.6031, allocations: 23.44 kB / 0.5641 GB, free: 41.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008355/0.6039, allocations: 296.2 kB / 0.5644 GB, free: 41.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.6055, allocations: 491.3 kB / 0.5649 GB, free: 41.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004004/0.6095, allocations: 4.937 MB / 0.5697 GB, free: 36.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/0.6117, allocations: 83.19 kB / 0.5698 GB, free: 36.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.6119, allocations: 102.6 kB / 0.5699 GB, free: 36.88 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.002463/0.6144, allocations: 1.11 MB / 0.5709 GB, free: 36.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005407/0.6149, allocations: 244.6 kB / 0.5712 GB, free: 36.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003599/0.6185, allocations: 2.432 MB / 0.5735 GB, free: 34.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.6185, allocations: 15.56 kB / 0.5736 GB, free: 34.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.6185, allocations: 7.25 kB / 0.5736 GB, free: 34.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.6186, allocations: 7.969 kB / 0.5736 GB, free: 34.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008233/0.6268, allocations: 5.794 MB / 0.5792 GB, free: 29.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.6268, allocations: 6.609 kB / 0.5792 GB, free: 29.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.628, allocations: 271.8 kB / 0.5795 GB, free: 29.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008344/0.6288, allocations: 322.3 kB / 0.5798 GB, free: 28.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.629, allocations: 39.98 kB / 0.5798 GB, free: 28.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005446/0.6344, allocations: 7.072 MB / 0.5868 GB, free: 21.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.6345, allocations: 7.938 kB / 0.5868 GB, free: 21.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005052/0.6395, allocations: 3.51 MB / 0.5902 GB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/0.641, allocations: 0.498 MB / 0.5907 GB, free: 17.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008185/0.6418, allocations: 32 kB / 0.5907 GB, free: 17.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/0.6435, allocations: 66.58 kB / 0.5908 GB, free: 17.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/0.6438, allocations: 125.7 kB / 0.5909 GB, free: 17.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.644, allocations: 43.86 kB / 0.5909 GB, free: 16.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002533/0.6465, allocations: 1.515 MB / 0.5924 GB, free: 15.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6465, allocations: 0 / 0.5924 GB, free: 15.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002764/0.6493, allocations: 0.6523 MB / 0.593 GB, free: 14.79 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.0003511/0.6496, allocations: 165.9 kB / 0.5932 GB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005604/0.6553, allocations: 3.016 MB / 0.5961 GB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6553, allocations: 0 / 0.5961 GB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.6571, allocations: 1.413 MB / 0.5975 GB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003486/0.6606, allocations: 0.5758 MB / 0.5981 GB, free: 9.582 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.6743, allocations: 8.031 MB / 0.6059 GB, free: 1.523 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002854/0.6772, allocations: 2.466 MB / 0.6083 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009193/0.6781, allocations: 171.4 kB / 0.6085 GB, free: 14.86 MB / 382.1 MB Notification: Performance of SimCode: time 2.003e-06/0.6782, allocations: 0 / 0.6085 GB, free: 14.86 MB / 382.1 MB Notification: Performance of Templates: time 0.3559/1.034, allocations: 99.8 MB / 0.706 GB, free: 148.8 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)