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.0009911/0.0009912, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.239/1.239, allocations: 222.9 MB / 238.9 MB, free: 4.832 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.00131/0.00131, allocations: 184.5 kB / 289.1 MB, free: 2.578 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03138/0.03138, allocations: 8.783 MB / 348.1 MB, free: 4.984 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 72.38 kB / 410.4 MB, free: 42.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08302/0.08429, allocations: 51.56 MB / 462 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01465/0.09898, allocations: 15.63 MB / 477.6 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00929/0.1083, allocations: 5.216 MB / 482.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002575/0.1109, allocations: 87.69 kB / 482.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003352/0.1143, allocations: 1.065 MB / 483.9 MB, free: 8.957 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.004313/0.1187, allocations: 1.407 MB / 485.4 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.121, allocations: 0.9026 MB / 486.3 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005671/0.1267, allocations: 5.001 MB / 491.3 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003769/0.1305, allocations: 2.933 MB / 494.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00219/0.1327, allocations: 1.704 MB / 495.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002884/0.1356, allocations: 2.245 MB / 498.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009194/0.1365, allocations: 340 kB / 498.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001646/0.1382, allocations: 0.5466 MB / 499 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009856/0.1392, allocations: 1.039 MB / 0.4883 GB, free: 8.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00392/0.1431, allocations: 2.181 MB / 0.4905 GB, free: 6.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006502/0.1496, allocations: 7.251 MB / 0.4976 GB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1496, allocations: 4 kB / 0.4976 GB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1497, allocations: 3.938 kB / 0.4976 GB, free: 15.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002115/0.1499, allocations: 0 / 0.4976 GB, free: 15.26 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.01201/0.1619, allocations: 4.959 MB / 0.5024 GB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.162, allocations: 12.03 kB / 0.5024 GB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004762/0.1667, allocations: 0.9523 MB / 0.5033 GB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004643/0.1714, allocations: 2.657 MB / 0.5059 GB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.1716, allocations: 275.8 kB / 0.5062 GB, free: 6.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005377/0.1721, allocations: 372 kB / 0.5066 GB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007396/0.1795, allocations: 4.772 MB / 0.5112 GB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.193e-05/0.1796, allocations: 0 / 0.5112 GB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003054/0.1799, allocations: 152 kB / 0.5114 GB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.18, allocations: 159.3 kB / 0.5115 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006662/0.1867, allocations: 4.054 MB / 0.5155 GB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1784/0.3651, allocations: 15.8 MB / 0.5309 GB, free: 57.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005027/0.3702, allocations: 6.931 MB / 0.5377 GB, free: 52.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002425/0.3726, allocations: 1.534 MB / 0.5392 GB, free: 52.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006594/0.3792, allocations: 4.239 MB / 0.5433 GB, free: 51.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.3793, allocations: 48.22 kB / 0.5434 GB, free: 51.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 2.906e-06/0.3793, allocations: 0 / 0.5434 GB, free: 51.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.0116/0.3909, allocations: 6.454 MB / 0.5497 GB, free: 50.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.3909, allocations: 75.53 kB / 0.5497 GB, free: 50.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003089/0.394, allocations: 2.233 MB / 0.5519 GB, free: 49.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.3942, allocations: 51.89 kB / 0.552 GB, free: 49.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007552/0.395, allocations: 1.706 MB / 0.5536 GB, free: 48.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002956/0.3953, allocations: 0.5418 MB / 0.5542 GB, free: 47.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004484/0.3957, allocations: 388.6 kB / 0.5545 GB, free: 47.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.534e-05/0.3958, allocations: 305.1 kB / 0.5548 GB, free: 47.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.3968, allocations: 0.8283 MB / 0.5556 GB, free: 46.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.3981, allocations: 1.482 MB / 0.5571 GB, free: 45.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002401/0.4005, allocations: 2.445 MB / 0.5595 GB, free: 44.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.677e-06/0.4005, allocations: 9.5 kB / 0.5595 GB, free: 44.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004067/0.4046, allocations: 2.953 MB / 0.5624 GB, free: 42.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.4046, allocations: 18.75 kB / 0.5624 GB, free: 42.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/0.4046, allocations: 19.34 kB / 0.5624 GB, free: 42.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007788/0.4054, allocations: 303.6 kB / 0.5627 GB, free: 42.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.407, allocations: 485.3 kB / 0.5631 GB, free: 42.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.4104, allocations: 4.509 MB / 0.5675 GB, free: 38.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.4121, allocations: 97.58 kB / 0.5676 GB, free: 38.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.4122, allocations: 87.38 kB / 0.5677 GB, free: 38.09 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.001527/0.4137, allocations: 1.12 MB / 0.5688 GB, free: 37.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000345/0.4141, allocations: 232.2 kB / 0.569 GB, free: 37.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.4173, allocations: 2.429 MB / 0.5714 GB, free: 35.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.4174, allocations: 13.66 kB / 0.5714 GB, free: 35.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.4174, allocations: 10.44 kB / 0.5714 GB, free: 35.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.4174, allocations: 12.52 kB / 0.5714 GB, free: 35.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007042/0.4244, allocations: 5.793 MB / 0.5771 GB, free: 31.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4245, allocations: 4 kB / 0.5771 GB, free: 31.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.4256, allocations: 267.7 kB / 0.5774 GB, free: 30.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007746/0.4263, allocations: 328 kB / 0.5777 GB, free: 30.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.186e-05/0.4264, allocations: 38.73 kB / 0.5777 GB, free: 30.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004434/0.4309, allocations: 6.433 MB / 0.584 GB, free: 23.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4309, allocations: 10.92 kB / 0.584 GB, free: 23.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004233/0.4351, allocations: 3.523 MB / 0.5874 GB, free: 19.97 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008853/0.436, allocations: 0.4942 MB / 0.5879 GB, free: 19.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002753/0.4363, allocations: 32 kB / 0.588 GB, free: 19.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009946/0.4373, allocations: 67.95 kB / 0.588 GB, free: 19.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.4376, allocations: 125.6 kB / 0.5881 GB, free: 19.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.954e-05/0.4377, allocations: 39.98 kB / 0.5882 GB, free: 19.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001723/0.4394, allocations: 1.523 MB / 0.5897 GB, free: 17.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4394, allocations: 0 / 0.5897 GB, free: 17.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001964/0.4414, allocations: 0.6522 MB / 0.5903 GB, free: 17.01 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.0002676/0.4416, allocations: 159.8 kB / 0.5905 GB, free: 16.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002882/0.4445, allocations: 2.43 MB / 0.5928 GB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.4446, allocations: 5.422 kB / 0.5928 GB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.4462, allocations: 1.414 MB / 0.5942 GB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002248/0.4485, allocations: 0.5434 MB / 0.5947 GB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008619/0.4571, allocations: 8.071 MB / 0.6026 GB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001426/0.4585, allocations: 2.513 MB / 0.6051 GB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001616/0.4602, allocations: 0.5077 MB / 0.6056 GB, free: 1.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003761/0.4605, allocations: 155.4 kB / 0.6057 GB, free: 1.09 MB / 366.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4606, allocations: 4 kB / 0.6057 GB, free: 1.086 MB / 366.1 MB Notification: Performance of Templates: time 0.05234/0.5129, allocations: 31.26 MB / 0.6363 GB, free: 2.109 MB / 398.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)