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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.004392/0.004392, allocations: 169.6 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03644/0.03644, allocations: 8.798 MB / 24.65 MB, free: 4.121 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.194/1.194, allocations: 223.2 MB / 250.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008335/0.0008336, allocations: 98.34 kB / 304 MB, free: 3.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003616, allocations: 12 kB / 367.1 MB, free: 4.934 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2291, allocations: 52.54 MB / 419.6 MB, free: 48.14 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.3496, allocations: 117 MB / 0.524 GB, free: 4.023 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001783/0.3498, allocations: 75.97 kB / 0.5241 GB, free: 3.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4879/0.8377, allocations: 157.7 MB / 0.6781 GB, free: 25.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.8378, allocations: 4 kB / 0.6781 GB, free: 25.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002769/0.8381, allocations: 99.86 kB / 0.6782 GB, free: 25.29 MB / 426.7 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.009724/0.8478, allocations: 4.011 MB / 0.6821 GB, free: 21.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.8479, allocations: 12.56 kB / 0.6821 GB, free: 21.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004827/0.8527, allocations: 0.8811 MB / 0.683 GB, free: 20.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008607/0.8613, allocations: 3.644 MB / 0.6865 GB, free: 16.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002257/0.8616, allocations: 279.4 kB / 0.6868 GB, free: 16.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009712/0.8626, allocations: 363.9 kB / 0.6871 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008591/0.8712, allocations: 4.681 MB / 0.6917 GB, free: 11.18 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.354e-05/0.8713, allocations: 4 kB / 0.6917 GB, free: 11.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004538/0.8717, allocations: 152 kB / 0.6918 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001023/0.8718, allocations: 159.3 kB / 0.692 GB, free: 10.87 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005866/0.8777, allocations: 3.812 MB / 0.6957 GB, free: 7.051 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.8999, allocations: 15.77 MB / 0.7111 GB, free: 6.777 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006216/0.9061, allocations: 7.007 MB / 0.718 GB, free: 14.87 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006158/0.9123, allocations: 3.517 MB / 0.7214 GB, free: 11.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.9124, allocations: 51.88 kB / 0.7215 GB, free: 11.19 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 2.696e-06/0.9124, allocations: 0 / 0.7215 GB, free: 11.19 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=180): time 0.01383/0.9262, allocations: 7.275 MB / 0.7286 GB, free: 3.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.9263, allocations: 73.39 kB / 0.7286 GB, free: 3.684 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003328/0.9296, allocations: 1.89 MB / 0.7305 GB, free: 1.766 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/0.9298, allocations: 57.7 kB / 0.7305 GB, free: 1.703 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1852/1.115, allocations: 1.689 MB / 0.7322 GB, free: 76.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007511/1.116, allocations: 0.6083 MB / 0.7328 GB, free: 76.79 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/1.116, allocations: 51.5 kB / 0.7328 GB, free: 76.79 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/1.116, allocations: 394.7 kB / 0.7332 GB, free: 76.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001552/1.118, allocations: 0.8935 MB / 0.7341 GB, free: 76.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001534/1.119, allocations: 1.596 MB / 0.7356 GB, free: 75.63 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/1.121, allocations: 1.187 MB / 0.7368 GB, free: 75.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/1.121, allocations: 7.469 kB / 0.7368 GB, free: 75.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.004322/1.125, allocations: 3.166 MB / 0.7399 GB, free: 75.52 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/1.125, allocations: 16 kB / 0.7399 GB, free: 75.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/1.125, allocations: 22.19 kB / 0.7399 GB, free: 75.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009189/1.126, allocations: 449.1 kB / 0.7404 GB, free: 75.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001627/1.128, allocations: 0.5024 MB / 0.7408 GB, free: 75.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004729/1.132, allocations: 4.811 MB / 0.7455 GB, free: 74.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/1.134, allocations: 108.9 kB / 0.7456 GB, free: 74.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001547/1.134, allocations: 101.1 kB / 0.7457 GB, free: 74.12 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (262): * Single equations (assignments): 260 * 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: 1 * 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: 1 {(3,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002518/1.137, allocations: 1.142 MB / 0.7469 GB, free: 74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005858/1.138, allocations: 241.1 kB / 0.7471 GB, free: 73.88 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004377/1.142, allocations: 2.686 MB / 0.7497 GB, free: 73.53 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/1.142, allocations: 15.56 kB / 0.7497 GB, free: 73.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/1.142, allocations: 10.95 kB / 0.7497 GB, free: 73.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/1.142, allocations: 8.828 kB / 0.7497 GB, free: 73.53 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008413/1.15, allocations: 6.242 MB / 0.7558 GB, free: 72.85 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/1.15, allocations: 10.81 kB / 0.7559 GB, free: 72.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/1.152, allocations: 299.3 kB / 0.7561 GB, free: 72.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008695/1.153, allocations: 433.9 kB / 0.7565 GB, free: 72.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000102/1.153, allocations: 41.92 kB / 0.7566 GB, free: 72.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005832/1.159, allocations: 7.59 MB / 0.764 GB, free: 68.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.159, allocations: 1.062 kB / 0.764 GB, free: 68.57 MB / 458.7 MB Warning: The linear system: 1 : 3.0 * smee.stator.zeroInductor.i0 = smee.is[1] + smee.is[2] + smee.is[3] 2 : (-smee.is[3]) - smee.is[2] - smee.is[1] = 0.0 [ -1.0 , -1.0 ; -1.0 , -1.0 ] * [ smee.is[1] ; smee.is[2] ] = [ smee.is[3] + (-3.0) * smee.stator.zeroInductor.i0 ; smee.is[3] ] might be structurally or numerically singular for variable smee.is[2] since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005404/1.164, allocations: 3.988 MB / 0.7679 GB, free: 67.81 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/1.165, allocations: 0.5079 MB / 0.7684 GB, free: 67.6 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002658/1.165, allocations: 38.41 kB / 0.7684 GB, free: 67.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/1.166, allocations: 77.39 kB / 0.7685 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002468/1.167, allocations: 138 kB / 0.7686 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/1.167, allocations: 46.62 kB / 0.7687 GB, free: 67.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001997/1.169, allocations: 1.432 MB / 0.7701 GB, free: 67.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.169, allocations: 0 / 0.7701 GB, free: 67.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002183/1.171, allocations: 0.7327 MB / 0.7708 GB, free: 67.45 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.is[3],smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.zeroInductor.i0,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): 144 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 28,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000503/1.172, allocations: 360.8 kB / 0.7711 GB, free: 67.36 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00335/1.175, allocations: 2.649 MB / 0.7737 GB, free: 67.06 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/1.175, allocations: 0 / 0.7737 GB, free: 67.06 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/1.177, allocations: 1.492 MB / 0.7752 GB, free: 66.78 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00193/1.179, allocations: 0.5383 MB / 0.7757 GB, free: 66.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/1.191, allocations: 8.02 MB / 0.7835 GB, free: 63.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002457/1.193, allocations: 2.608 MB / 0.7861 GB, free: 62.58 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002007/1.195, allocations: 0.5342 MB / 0.7866 GB, free: 62.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004862/1.196, allocations: 154.8 kB / 0.7868 GB, free: 62.5 MB / 458.7 MB Notification: Performance of SimCode: time 1.272e-06/1.196, allocations: 3.062 kB / 0.7868 GB, free: 62.5 MB / 458.7 MB Notification: Performance of Templates: time 0.05297/1.249, allocations: 33.9 MB / 0.8199 GB, free: 61.05 MB / 458.7 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)