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/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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006731/0.006731, allocations: 171.1 kB / 15.11 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03988/0.03988, allocations: 8.797 MB / 24.65 MB, free: 4.129 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.434/1.434, allocations: 223.2 MB / 250.7 MB, free: 6.504 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.001013/0.001012, allocations: 102.7 kB / 304 MB, free: 4.039 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003738/0.0003739, allocations: 16 kB / 367.2 MB, free: 4.879 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3064, allocations: 52.54 MB / 419.7 MB, free: 48.08 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.4495, allocations: 117 MB / 0.5241 GB, free: 4.023 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4499, allocations: 75.97 kB / 0.5242 GB, free: 3.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5958/1.046, allocations: 158 MB / 0.6785 GB, free: 25.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.046, allocations: 0 / 0.6785 GB, free: 25.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002332/1.046, allocations: 91.88 kB / 0.6786 GB, free: 25.1 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.01098/1.057, allocations: 4.022 MB / 0.6825 GB, free: 21.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/1.057, allocations: 12.56 kB / 0.6825 GB, free: 21 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00194/1.059, allocations: 0.5645 MB / 0.6831 GB, free: 20.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004892/1.064, allocations: 0.8811 MB / 0.6839 GB, free: 19.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009174/1.073, allocations: 3.644 MB / 0.6875 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002588/1.073, allocations: 275.5 kB / 0.6878 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/1.075, allocations: 367.9 kB / 0.6881 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009942/1.085, allocations: 4.689 MB / 0.6927 GB, free: 10.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.131e-05/1.085, allocations: 7.906 kB / 0.6927 GB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003871/1.085, allocations: 152 kB / 0.6928 GB, free: 10.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/1.085, allocations: 155.4 kB / 0.693 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007294/1.093, allocations: 3.812 MB / 0.6967 GB, free: 6.273 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02684/1.12, allocations: 15.78 MB / 0.7121 GB, free: 5.996 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006688/1.126, allocations: 7 MB / 0.719 GB, free: 14.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007378/1.134, allocations: 3.529 MB / 0.7224 GB, free: 10.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.434e-05/1.134, allocations: 51.88 kB / 0.7224 GB, free: 10.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 4.378e-06/1.134, allocations: 0 / 0.7224 GB, free: 10.41 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.01476/1.149, allocations: 7.263 MB / 0.7295 GB, free: 2.992 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/1.149, allocations: 77.34 kB / 0.7296 GB, free: 2.902 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003182/1.152, allocations: 1.886 MB / 0.7315 GB, free: 0.9883 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002708/1.152, allocations: 57.7 kB / 0.7315 GB, free: 0.9258 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2793/1.431, allocations: 1.694 MB / 0.7332 GB, free: 76.92 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000902/1.432, allocations: 0.6199 MB / 0.7338 GB, free: 76.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/1.433, allocations: 46.81 kB / 0.7338 GB, free: 76.68 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/1.433, allocations: 392.6 kB / 0.7342 GB, free: 76.37 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001712/1.434, allocations: 0.8908 MB / 0.7351 GB, free: 76.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/1.436, allocations: 1.597 MB / 0.7366 GB, free: 75.52 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/1.438, allocations: 1.185 MB / 0.7378 GB, free: 75.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/1.438, allocations: 3.812 kB / 0.7378 GB, free: 75.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.005073/1.443, allocations: 3.169 MB / 0.7409 GB, free: 75.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/1.443, allocations: 16.09 kB / 0.7409 GB, free: 75.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.869e-05/1.443, allocations: 24.66 kB / 0.7409 GB, free: 75.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/1.444, allocations: 448.2 kB / 0.7413 GB, free: 75.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001885/1.446, allocations: 0.5053 MB / 0.7418 GB, free: 75.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005556/1.452, allocations: 4.808 MB / 0.7465 GB, free: 73.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/1.454, allocations: 108.1 kB / 0.7466 GB, free: 73.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002853/1.454, allocations: 100.2 kB / 0.7467 GB, free: 73.88 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.002587/1.457, allocations: 1.146 MB / 0.7478 GB, free: 73.76 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006309/1.458, allocations: 238.7 kB / 0.7481 GB, free: 73.64 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.004425/1.462, allocations: 2.685 MB / 0.7507 GB, free: 73.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/1.462, allocations: 18.84 kB / 0.7507 GB, free: 73.29 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/1.462, allocations: 3.969 kB / 0.7507 GB, free: 73.29 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/1.462, allocations: 10.36 kB / 0.7507 GB, free: 73.29 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.0103/1.472, allocations: 6.252 MB / 0.7568 GB, free: 72.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.388e-06/1.473, allocations: 3.953 kB / 0.7568 GB, free: 72.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/1.474, allocations: 307.3 kB / 0.7571 GB, free: 72.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009892/1.475, allocations: 426.2 kB / 0.7575 GB, free: 72.58 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/1.475, allocations: 49.53 kB / 0.7576 GB, free: 72.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006802/1.482, allocations: 7.583 MB / 0.765 GB, free: 68.33 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/1.482, allocations: 1.062 kB / 0.765 GB, free: 68.33 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.006415/1.488, allocations: 3.991 MB / 0.7689 GB, free: 67.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001474/1.49, allocations: 0.505 MB / 0.7694 GB, free: 67.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003711/1.49, allocations: 40.28 kB / 0.7694 GB, free: 67.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/1.491, allocations: 77.81 kB / 0.7695 GB, free: 67.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003786/1.492, allocations: 134 kB / 0.7696 GB, free: 67.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/1.492, allocations: 49.27 kB / 0.7697 GB, free: 67.36 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00247/1.494, allocations: 1.43 MB / 0.7711 GB, free: 67.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.494, allocations: 0 / 0.7711 GB, free: 67.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002997/1.497, allocations: 0.7304 MB / 0.7718 GB, free: 67.21 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 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 Backend phase and start with SimCode phase: time 0.005926/1.503, allocations: 5.187 MB / 0.7768 GB, free: 65.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004355/1.508, allocations: 2.642 MB / 0.7794 GB, free: 65.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.508, allocations: 1.281 kB / 0.7794 GB, free: 65.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002382/1.51, allocations: 1.493 MB / 0.7809 GB, free: 64.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002967/1.513, allocations: 0.5349 MB / 0.7814 GB, free: 64.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04205/1.555, allocations: 35.27 MB / 0.8158 GB, free: 38.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003323/1.558, allocations: 2.619 MB / 0.8184 GB, free: 37.13 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002624/1.561, allocations: 0.5266 MB / 0.8189 GB, free: 37.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002353/1.563, allocations: 1.347 MB / 0.8202 GB, free: 35.95 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/1.563, allocations: 0 / 0.8202 GB, free: 35.95 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09888/1.662, allocations: 60.8 MB / 0.8796 GB, free: 11.55 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/1.663, allocations: 203.6 kB / 0.8798 GB, free: 11.32 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.926/5.589, allocations: 0 / 0.8798 GB, free: 11.32 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)