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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",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.005831/0.00583, allocations: 172.1 kB / 15.12 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.03819/0.03819, allocations: 8.796 MB / 24.65 MB, free: 4.094 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.371/1.371, allocations: 223.2 MB / 250.7 MB, free: 6.48 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.0008985/0.0008984, allocations: 97.19 kB / 304 MB, free: 4.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003503, allocations: 12 kB / 367.1 MB, free: 4.859 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2745, allocations: 52.55 MB / 419.7 MB, free: 48.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1439/0.4184, allocations: 117 MB / 0.5241 GB, free: 4.031 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.4188, allocations: 83.95 kB / 0.5242 GB, free: 3.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5804/0.9992, allocations: 157.7 MB / 0.6782 GB, free: 25.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.925e-06/0.9992, allocations: 0 / 0.6782 GB, free: 25.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002643/0.9995, allocations: 91.88 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.01213/1.012, allocations: 4.022 MB / 0.6822 GB, free: 21.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/1.012, allocations: 8.562 kB / 0.6822 GB, free: 21.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002284/1.014, allocations: 0.5646 MB / 0.6827 GB, free: 20.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005391/1.019, allocations: 0.8811 MB / 0.6836 GB, free: 19.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008278/1.028, allocations: 3.648 MB / 0.6872 GB, free: 16.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/1.028, allocations: 275.5 kB / 0.6874 GB, free: 15.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007933/1.029, allocations: 367.9 kB / 0.6878 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008457/1.037, allocations: 4.685 MB / 0.6923 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.743e-05/1.037, allocations: 7.906 kB / 0.6924 GB, free: 10.58 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00036/1.038, allocations: 160 kB / 0.6925 GB, free: 10.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/1.038, allocations: 151.4 kB / 0.6927 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007108/1.045, allocations: 3.812 MB / 0.6964 GB, free: 6.457 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02714/1.072, allocations: 15.78 MB / 0.7118 GB, free: 6.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006842/1.079, allocations: 6.995 MB / 0.7186 GB, free: 14.28 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007349/1.086, allocations: 3.513 MB / 0.722 GB, free: 10.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/1.086, allocations: 55.86 kB / 0.7221 GB, free: 10.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 3.216e-06/1.086, allocations: 4 kB / 0.7221 GB, free: 10.6 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.01548/1.102, allocations: 7.264 MB / 0.7292 GB, free: 3.184 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/1.102, allocations: 69.41 kB / 0.7293 GB, free: 3.102 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003824/1.106, allocations: 1.898 MB / 0.7311 GB, free: 1.176 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003633/1.106, allocations: 57.7 kB / 0.7312 GB, free: 1.113 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2792/1.385, allocations: 1.688 MB / 0.7328 GB, free: 76.87 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008376/1.386, allocations: 0.62 MB / 0.7334 GB, free: 76.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001483/1.386, allocations: 45.59 kB / 0.7335 GB, free: 76.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/1.387, allocations: 396.7 kB / 0.7338 GB, free: 76.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/1.388, allocations: 0.8861 MB / 0.7347 GB, free: 76.39 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/1.39, allocations: 1.6 MB / 0.7363 GB, free: 75.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001504/1.392, allocations: 1.186 MB / 0.7374 GB, free: 75.54 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/1.392, allocations: 7.531 kB / 0.7374 GB, free: 75.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.004726/1.396, allocations: 3.165 MB / 0.7405 GB, free: 75.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/1.396, allocations: 13.75 kB / 0.7405 GB, free: 75.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.031e-05/1.396, allocations: 24.47 kB / 0.7406 GB, free: 75.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/1.397, allocations: 442 kB / 0.741 GB, free: 75.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002007/1.399, allocations: 0.5106 MB / 0.7415 GB, free: 75.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/1.405, allocations: 4.82 MB / 0.7462 GB, free: 73.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002194/1.407, allocations: 104 kB / 0.7463 GB, free: 73.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002476/1.408, allocations: 100.7 kB / 0.7464 GB, free: 73.9 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.00234/1.41, allocations: 1.144 MB / 0.7475 GB, free: 73.79 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005655/1.41, allocations: 239.4 kB / 0.7477 GB, free: 73.66 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.004188/1.415, allocations: 2.683 MB / 0.7504 GB, free: 73.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/1.415, allocations: 18.19 kB / 0.7504 GB, free: 73.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.976e-06/1.415, allocations: 3.969 kB / 0.7504 GB, free: 73.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/1.415, allocations: 15.05 kB / 0.7504 GB, free: 73.32 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.01034/1.425, allocations: 6.241 MB / 0.7565 GB, free: 72.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/1.425, allocations: 3.953 kB / 0.7565 GB, free: 72.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001328/1.426, allocations: 306.6 kB / 0.7568 GB, free: 72.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009635/1.427, allocations: 433.5 kB / 0.7572 GB, free: 72.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/1.428, allocations: 44.34 kB / 0.7572 GB, free: 72.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006686/1.434, allocations: 7.589 MB / 0.7646 GB, free: 68.36 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.434, allocations: 5.5 kB / 0.7647 GB, free: 68.36 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.006448/1.441, allocations: 3.978 MB / 0.7685 GB, free: 67.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001662/1.442, allocations: 0.5114 MB / 0.769 GB, free: 67.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004402/1.443, allocations: 39.22 kB / 0.7691 GB, free: 67.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/1.444, allocations: 77.52 kB / 0.7691 GB, free: 67.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003358/1.444, allocations: 141 kB / 0.7693 GB, free: 67.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/1.445, allocations: 49.28 kB / 0.7693 GB, free: 67.38 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002512/1.447, allocations: 1.426 MB / 0.7707 GB, free: 67.24 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.447, allocations: 0 / 0.7707 GB, free: 67.24 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003274/1.45, allocations: 0.7352 MB / 0.7714 GB, free: 67.24 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.006104/1.456, allocations: 5.182 MB / 0.7765 GB, free: 65.59 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004195/1.461, allocations: 2.647 MB / 0.7791 GB, free: 65.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.461, allocations: 0 / 0.7791 GB, free: 65.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002411/1.463, allocations: 1.49 MB / 0.7805 GB, free: 65.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003035/1.466, allocations: 0.5457 MB / 0.7811 GB, free: 65.01 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03892/1.505, allocations: 35.26 MB / 0.8155 GB, free: 38.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002222/1.507, allocations: 2.616 MB / 0.8181 GB, free: 37.22 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00225/1.51, allocations: 0.5293 MB / 0.8186 GB, free: 37.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001564/1.511, allocations: 1.346 MB / 0.8199 GB, free: 36.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.673e-06/1.511, allocations: 4 kB / 0.8199 GB, free: 36.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0945/1.606, allocations: 60.79 MB / 0.8793 GB, free: 11.63 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/1.606, allocations: 206.1 kB / 0.8795 GB, free: 11.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.693/5.299, allocations: 4 kB / 0.8795 GB, free: 11.39 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)