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.001013/0.001013, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0414/0.0414, allocations: 8.717 MB / 16.79 MB, free: 3.383 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 221.5 MB / 240.8 MB, free: 13.19 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.0009345/0.0009344, allocations: 99.56 kB / 293.9 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.029e-05, allocations: 3.984 kB / 352.7 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1378, allocations: 52.55 MB / 405.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.5833, allocations: 116.3 MB / 0.5093 GB, free: 3.477 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.5835, allocations: 80.53 kB / 0.5094 GB, free: 3.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6232/1.207, allocations: 156.1 MB / 0.6619 GB, free: 65.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.207, allocations: 0 / 0.6619 GB, free: 65.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002585/1.207, allocations: 90.56 kB / 0.662 GB, free: 65.42 MB / 442.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.01115/1.218, allocations: 3.593 MB / 0.6655 GB, free: 63.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/1.218, allocations: 11.61 kB / 0.6655 GB, free: 63.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005735/1.224, allocations: 0.8849 MB / 0.6663 GB, free: 62.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00996/1.234, allocations: 3.596 MB / 0.6698 GB, free: 60.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002733/1.234, allocations: 116.6 kB / 0.67 GB, free: 60.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001682/1.236, allocations: 225.4 kB / 0.6702 GB, free: 60.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01028/1.246, allocations: 3.468 MB / 0.6736 GB, free: 58.53 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/1.26, allocations: 4.064 MB / 0.6775 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002196/1.26, allocations: 0 / 0.6775 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001178/1.261, allocations: 7.609 kB / 0.6775 GB, free: 56.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001688/1.261, allocations: 153.2 kB / 0.6777 GB, free: 56.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02902/1.29, allocations: 15.08 MB / 0.6924 GB, free: 43.05 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005337/1.296, allocations: 6.849 MB / 0.6991 GB, free: 35.32 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/1.298, allocations: 1.412 MB / 0.7005 GB, free: 33.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007362/1.305, allocations: 3.933 MB / 0.7043 GB, free: 29.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/1.305, allocations: 59.81 kB / 0.7044 GB, free: 29.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 3.316e-06/1.305, allocations: 0 / 0.7044 GB, free: 29.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.01164/1.317, allocations: 5.35 MB / 0.7096 GB, free: 24.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/1.317, allocations: 64.72 kB / 0.7097 GB, free: 24.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0034/1.321, allocations: 1.553 MB / 0.7112 GB, free: 22.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/1.321, allocations: 25.7 kB / 0.7112 GB, free: 22.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/1.322, allocations: 1.725 MB / 0.7129 GB, free: 20.96 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004204/1.322, allocations: 0.5236 MB / 0.7134 GB, free: 20.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/1.322, allocations: 0 / 0.7134 GB, free: 20.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/1.323, allocations: 386.3 kB / 0.7138 GB, free: 20.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/1.324, allocations: 0.715 MB / 0.7145 GB, free: 19.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/1.325, allocations: 1.435 MB / 0.7159 GB, free: 17.56 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/1.327, allocations: 1.149 MB / 0.717 GB, free: 16.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.251e-05/1.327, allocations: 11.94 kB / 0.717 GB, free: 16.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.005308/1.332, allocations: 2.752 MB / 0.7197 GB, free: 13.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/1.332, allocations: 16 kB / 0.7197 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-05/1.332, allocations: 24 kB / 0.7197 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008303/1.333, allocations: 295.5 kB / 0.72 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/1.335, allocations: 0.4914 MB / 0.7205 GB, free: 12.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003753/1.339, allocations: 4.268 MB / 0.7247 GB, free: 8.285 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/1.341, allocations: 59.92 kB / 0.7247 GB, free: 8.227 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002212/1.341, allocations: 99.98 kB / 0.7248 GB, free: 8.129 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 254 * 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: 2 * 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: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003461/1.341, allocations: 170.5 kB / 0.725 GB, free: 7.957 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003606/1.345, allocations: 2.155 MB / 0.7271 GB, free: 5.746 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005422/1.346, allocations: 217.3 kB / 0.7273 GB, free: 5.531 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/1.349, allocations: 2.289 MB / 0.7295 GB, free: 3.188 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/1.349, allocations: 19.94 kB / 0.7295 GB, free: 3.168 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.35, allocations: 4 kB / 0.7295 GB, free: 3.164 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/1.35, allocations: 7.969 kB / 0.7296 GB, free: 3.156 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/1.36, allocations: 5.06 MB / 0.7345 GB, free: 14.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/1.36, allocations: 7.984 kB / 0.7345 GB, free: 14.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/1.361, allocations: 271.8 kB / 0.7348 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008337/1.362, allocations: 302.3 kB / 0.735 GB, free: 13.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/1.362, allocations: 15.98 kB / 0.7351 GB, free: 13.42 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00637/1.369, allocations: 6.111 MB / 0.741 GB, free: 6.969 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/1.369, allocations: 8.016 kB / 0.741 GB, free: 6.961 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005591/1.374, allocations: 3.42 MB / 0.7444 GB, free: 3.398 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/1.376, allocations: 458.5 kB / 0.7448 GB, free: 2.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/1.376, allocations: 8 kB / 0.7448 GB, free: 2.922 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/1.377, allocations: 43.97 kB / 0.7449 GB, free: 2.879 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/1.377, allocations: 113.1 kB / 0.745 GB, free: 2.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.411e-05/1.377, allocations: 47.98 kB / 0.745 GB, free: 2.723 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001996/1.379, allocations: 1.142 MB / 0.7461 GB, free: 1.559 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.379, allocations: 3.938 kB / 0.7461 GB, free: 1.555 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002652/1.382, allocations: 0.5939 MB / 0.7467 GB, free: 0.9609 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 128 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3396/1.721, allocations: 4.571 MB / 0.7512 GB, free: 83.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003324/1.725, allocations: 2.19 MB / 0.7533 GB, free: 83.31 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.725, allocations: 0 / 0.7533 GB, free: 83.31 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001705/1.727, allocations: 1.278 MB / 0.7546 GB, free: 82.99 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002615/1.729, allocations: 402.7 kB / 0.755 GB, free: 82.98 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/1.742, allocations: 5.916 MB / 0.7607 GB, free: 81.74 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002222/1.745, allocations: 2.585 MB / 0.7633 GB, free: 80.98 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002034/1.747, allocations: 498.5 kB / 0.7637 GB, free: 80.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/1.748, allocations: 1.335 MB / 0.765 GB, free: 80.96 MB / 458.7 MB Notification: Performance of SimCode: time 1.212e-06/1.748, allocations: 3.391 kB / 0.765 GB, free: 80.96 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.104/1.852, allocations: 49.51 MB / 0.8134 GB, free: 78.33 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/1.852, allocations: 148.1 kB / 0.8135 GB, free: 78.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.314/5.167, allocations: 0 / 0.8135 GB, free: 78.14 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)