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.001564/0.001564, 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.05663/0.05663, 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.611/1.611, allocations: 221.5 MB / 240.9 MB, free: 13.13 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.0009769/0.0009769, allocations: 97 kB / 293.9 MB, free: 7.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.154e-05/3.188e-05, allocations: 4 kB / 352.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1246, allocations: 52.55 MB / 405.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4447/0.5693, allocations: 116.3 MB / 0.5094 GB, free: 3.578 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.5695, allocations: 77.03 kB / 0.5094 GB, free: 3.504 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6558/1.225, allocations: 155.9 MB / 0.6617 GB, free: 65.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.225, allocations: 0 / 0.6617 GB, free: 65.48 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002717/1.226, allocations: 87.31 kB / 0.6618 GB, free: 65.46 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.01113/1.237, allocations: 3.598 MB / 0.6653 GB, free: 63.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/1.237, allocations: 15.45 kB / 0.6653 GB, free: 63.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005655/1.243, allocations: 0.8781 MB / 0.6662 GB, free: 62.7 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009398/1.252, allocations: 3.606 MB / 0.6697 GB, free: 60.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001908/1.252, allocations: 123.8 kB / 0.6698 GB, free: 60.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001221/1.253, allocations: 217.6 kB / 0.67 GB, free: 60.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007292/1.261, allocations: 3.469 MB / 0.6734 GB, free: 58.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00781/1.269, allocations: 4.055 MB / 0.6774 GB, free: 56.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.37e-05/1.269, allocations: 11.89 kB / 0.6774 GB, free: 56.19 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002997/1.269, allocations: 3.953 kB / 0.6774 GB, free: 56.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/1.269, allocations: 155.3 kB / 0.6775 GB, free: 56.17 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02215/1.291, allocations: 15.07 MB / 0.6922 GB, free: 43.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004585/1.296, allocations: 6.863 MB / 0.6989 GB, free: 35.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/1.298, allocations: 1.404 MB / 0.7003 GB, free: 34.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006832/1.305, allocations: 3.927 MB / 0.7041 GB, free: 30.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.704e-05/1.305, allocations: 55.88 kB / 0.7042 GB, free: 30.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 3.967e-06/1.305, allocations: 0 / 0.7042 GB, free: 30.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.01109/1.316, allocations: 5.35 MB / 0.7094 GB, free: 24.72 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.693e-05/1.316, allocations: 68.72 kB / 0.7095 GB, free: 24.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002407/1.318, allocations: 1.549 MB / 0.711 GB, free: 23.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/1.318, allocations: 29.64 kB / 0.711 GB, free: 23.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007894/1.319, allocations: 1.737 MB / 0.7127 GB, free: 21.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003077/1.32, allocations: 0.5119 MB / 0.7132 GB, free: 20.74 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.312e-05/1.32, allocations: 0 / 0.7132 GB, free: 20.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/1.32, allocations: 390.2 kB / 0.7136 GB, free: 20.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008715/1.321, allocations: 0.715 MB / 0.7143 GB, free: 19.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/1.322, allocations: 1.435 MB / 0.7157 GB, free: 17.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001667/1.324, allocations: 1.146 MB / 0.7168 GB, free: 16.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/1.324, allocations: 8 kB / 0.7168 GB, free: 16.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004181/1.328, allocations: 2.756 MB / 0.7195 GB, free: 13.92 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/1.328, allocations: 16 kB / 0.7195 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/1.328, allocations: 24 kB / 0.7196 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007113/1.329, allocations: 294.7 kB / 0.7198 GB, free: 13.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/1.33, allocations: 499.2 kB / 0.7203 GB, free: 13.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003531/1.334, allocations: 4.275 MB / 0.7245 GB, free: 8.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/1.336, allocations: 63.97 kB / 0.7245 GB, free: 8.527 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002419/1.336, allocations: 100 kB / 0.7246 GB, free: 8.43 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.0003658/1.336, allocations: 168.4 kB / 0.7248 GB, free: 8.258 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003554/1.34, allocations: 2.151 MB / 0.7269 GB, free: 6.055 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003717/1.34, allocations: 217.3 kB / 0.7271 GB, free: 5.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003693/1.344, allocations: 2.297 MB / 0.7294 GB, free: 3.484 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/1.344, allocations: 16 kB / 0.7294 GB, free: 3.469 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/1.344, allocations: 4 kB / 0.7294 GB, free: 3.465 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/1.344, allocations: 7.969 kB / 0.7294 GB, free: 3.457 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008653/1.353, allocations: 5.048 MB / 0.7343 GB, free: 14.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/1.353, allocations: 4 kB / 0.7343 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/1.354, allocations: 279.8 kB / 0.7346 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009207/1.355, allocations: 306.3 kB / 0.7349 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/1.355, allocations: 11.98 kB / 0.7349 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006401/1.362, allocations: 6.118 MB / 0.7409 GB, free: 7.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.197e-06/1.362, allocations: 7.984 kB / 0.7409 GB, free: 7.262 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005929/1.368, allocations: 3.405 MB / 0.7442 GB, free: 3.715 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.369, allocations: 454.5 kB / 0.7446 GB, free: 3.25 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/1.369, allocations: 15.94 kB / 0.7446 GB, free: 3.234 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/1.371, allocations: 43.95 kB / 0.7447 GB, free: 3.191 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003134/1.371, allocations: 117.1 kB / 0.7448 GB, free: 3.078 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.911e-05/1.371, allocations: 43.98 kB / 0.7448 GB, free: 3.035 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002041/1.373, allocations: 1.142 MB / 0.7459 GB, free: 1.871 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.373, allocations: 0 / 0.7459 GB, free: 1.871 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002742/1.376, allocations: 0.5977 MB / 0.7465 GB, free: 1.273 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.3516/1.727, allocations: 4.58 MB / 0.751 GB, free: 83.53 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00383/1.731, allocations: 2.19 MB / 0.7531 GB, free: 83.21 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.731, allocations: 0 / 0.7531 GB, free: 83.21 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/1.733, allocations: 1.281 MB / 0.7544 GB, free: 82.88 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002729/1.736, allocations: 402.5 kB / 0.7548 GB, free: 82.87 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01312/1.749, allocations: 5.918 MB / 0.7606 GB, free: 81.63 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002172/1.751, allocations: 2.586 MB / 0.7631 GB, free: 80.88 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002086/1.753, allocations: 494.3 kB / 0.7636 GB, free: 80.86 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001654/1.755, allocations: 1.336 MB / 0.7649 GB, free: 80.86 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/1.755, allocations: 0 / 0.7649 GB, free: 80.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1051/1.86, allocations: 49.51 MB / 0.8132 GB, free: 78.23 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/1.86, allocations: 145 kB / 0.8133 GB, free: 78.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.385/5.246, allocations: 2.875 kB / 0.8134 GB, free: 78.04 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)