Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",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.008521/0.008521, allocations: 169.8 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0611/0.0611, allocations: 8.792 MB / 24.64 MB, free: 4.086 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.535/1.535, allocations: 223.2 MB / 250.7 MB, free: 6.59 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.000952/0.000952, allocations: 92.3 kB / 304 MB, free: 4.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004074/0.0004075, allocations: 8 kB / 367.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3112, allocations: 52.56 MB / 419.7 MB, free: 48.11 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.4518, allocations: 117 MB / 0.5241 GB, free: 3.957 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.4521, allocations: 81.41 kB / 0.5242 GB, free: 3.879 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6061/1.058, allocations: 158.2 MB / 0.6787 GB, free: 24.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.396e-06/1.058, allocations: 4 kB / 0.6787 GB, free: 24.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003817/1.059, allocations: 87.92 kB / 0.6788 GB, free: 24.82 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.01308/1.072, allocations: 4.034 MB / 0.6827 GB, free: 20.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/1.072, allocations: 8.562 kB / 0.6827 GB, free: 20.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002345/1.074, allocations: 0.5529 MB / 0.6833 GB, free: 20.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005401/1.08, allocations: 0.885 MB / 0.6841 GB, free: 19.25 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009642/1.089, allocations: 3.651 MB / 0.6877 GB, free: 15.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002842/1.09, allocations: 279.5 kB / 0.6879 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/1.091, allocations: 367.9 kB / 0.6883 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/1.101, allocations: 4.682 MB / 0.6929 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/1.101, allocations: 11.84 kB / 0.6929 GB, free: 10.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006439/1.102, allocations: 156 kB / 0.693 GB, free: 9.945 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/1.102, allocations: 151.4 kB / 0.6932 GB, free: 9.797 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006725/1.109, allocations: 3.812 MB / 0.6969 GB, free: 5.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02492/1.134, allocations: 15.77 MB / 0.7123 GB, free: 5.715 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006567/1.141, allocations: 7.013 MB / 0.7191 GB, free: 13.8 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00639/1.147, allocations: 3.521 MB / 0.7226 GB, free: 10.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.377e-05/1.147, allocations: 47.88 kB / 0.7226 GB, free: 10.12 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 2.966e-06/1.147, allocations: 0 / 0.7226 GB, free: 10.12 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.01464/1.162, allocations: 7.281 MB / 0.7297 GB, free: 2.691 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.536e-05/1.162, allocations: 69.41 kB / 0.7298 GB, free: 2.609 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003004/1.165, allocations: 1.882 MB / 0.7316 GB, free: 0.6992 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001499/1.165, allocations: 57.7 kB / 0.7317 GB, free: 0.6367 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2561/1.421, allocations: 1.695 MB / 0.7334 GB, free: 76.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007405/1.422, allocations: 0.6137 MB / 0.734 GB, free: 76.42 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/1.422, allocations: 45.44 kB / 0.734 GB, free: 76.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/1.422, allocations: 399.3 kB / 0.7344 GB, free: 76.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00153/1.424, allocations: 0.8865 MB / 0.7352 GB, free: 76.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/1.425, allocations: 1.603 MB / 0.7368 GB, free: 75.26 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/1.427, allocations: 1.185 MB / 0.738 GB, free: 75.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/1.427, allocations: 9.062 kB / 0.738 GB, free: 75.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.004311/1.431, allocations: 3.161 MB / 0.7411 GB, free: 75.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/1.431, allocations: 17.97 kB / 0.7411 GB, free: 75.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.42e-05/1.431, allocations: 21.69 kB / 0.7411 GB, free: 75.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009768/1.432, allocations: 446.9 kB / 0.7415 GB, free: 75.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/1.434, allocations: 0.5065 MB / 0.742 GB, free: 75.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00524/1.439, allocations: 4.813 MB / 0.7467 GB, free: 73.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/1.441, allocations: 109.8 kB / 0.7468 GB, free: 73.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/1.441, allocations: 104.6 kB / 0.7469 GB, free: 73.62 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.002108/1.443, allocations: 1.137 MB / 0.748 GB, free: 73.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003707/1.444, allocations: 238.2 kB / 0.7483 GB, free: 73.38 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.003827/1.447, allocations: 2.683 MB / 0.7509 GB, free: 73.03 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/1.447, allocations: 20.55 kB / 0.7509 GB, free: 73.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.465e-06/1.447, allocations: 7.375 kB / 0.7509 GB, free: 73.03 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/1.447, allocations: 7.547 kB / 0.7509 GB, free: 73.03 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.008671/1.456, allocations: 6.241 MB / 0.757 GB, free: 72.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/1.456, allocations: 3 kB / 0.757 GB, free: 72.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/1.457, allocations: 308.2 kB / 0.7573 GB, free: 72.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009516/1.458, allocations: 435.6 kB / 0.7577 GB, free: 72.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/1.458, allocations: 45.34 kB / 0.7578 GB, free: 72.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006325/1.465, allocations: 7.588 MB / 0.7652 GB, free: 68.07 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/1.465, allocations: 4.719 kB / 0.7652 GB, free: 68.07 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.005859/1.471, allocations: 3.99 MB / 0.7691 GB, free: 67.31 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/1.472, allocations: 0.5046 MB / 0.7696 GB, free: 67.09 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002911/1.472, allocations: 37.09 kB / 0.7696 GB, free: 67.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/1.473, allocations: 83 kB / 0.7697 GB, free: 67.09 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003205/1.474, allocations: 131.4 kB / 0.7698 GB, free: 67.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/1.474, allocations: 53.48 kB / 0.7699 GB, free: 67.09 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002314/1.476, allocations: 1.428 MB / 0.7713 GB, free: 66.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.476, allocations: 0 / 0.7713 GB, free: 66.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00261/1.479, allocations: 0.7307 MB / 0.772 GB, free: 66.95 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.005585/1.484, allocations: 5.189 MB / 0.777 GB, free: 65.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004459/1.489, allocations: 2.643 MB / 0.7796 GB, free: 65.01 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.489, allocations: 3.312 kB / 0.7796 GB, free: 65.01 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002494/1.491, allocations: 1.489 MB / 0.7811 GB, free: 64.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002608/1.494, allocations: 0.539 MB / 0.7816 GB, free: 64.72 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03572/1.53, allocations: 35.26 MB / 0.816 GB, free: 37.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002189/1.532, allocations: 2.613 MB / 0.8186 GB, free: 36.88 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002254/1.534, allocations: 0.5293 MB / 0.8191 GB, free: 36.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001702/1.536, allocations: 1.347 MB / 0.8204 GB, free: 35.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.673e-06/1.536, allocations: 0 / 0.8204 GB, free: 35.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09373/1.63, allocations: 60.79 MB / 0.8798 GB, free: 11.25 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001442/1.63, allocations: 209.4 kB / 0.88 GB, free: 11.01 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.61/5.239, allocations: 3.938 kB / 0.88 GB, free: 11.01 MB / 458.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)