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.001154/0.001154, allocations: 173.9 kB / 7.648 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.04621/0.04621, allocations: 8.712 MB / 16.78 MB, free: 3.379 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.513/1.513, allocations: 221.5 MB / 240.9 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.001146/0.001146, allocations: 92.98 kB / 293.9 MB, free: 7.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.31e-05/2.319e-05, allocations: 4 kB / 352.7 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1577, allocations: 52.54 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4481/0.6059, allocations: 116.2 MB / 0.5093 GB, free: 3.535 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/0.6062, allocations: 81.7 kB / 0.5094 GB, free: 3.457 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6151/1.221, allocations: 155.6 MB / 0.6613 GB, free: 65.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.221, allocations: 0 / 0.6613 GB, free: 65.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000298/1.222, allocations: 82.44 kB / 0.6614 GB, free: 65.44 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.0117/1.233, allocations: 3.601 MB / 0.6649 GB, free: 63.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/1.233, allocations: 10.73 kB / 0.6649 GB, free: 63.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005867/1.239, allocations: 0.8784 MB / 0.6658 GB, free: 62.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009231/1.249, allocations: 3.609 MB / 0.6693 GB, free: 60.3 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/1.249, allocations: 126.1 kB / 0.6694 GB, free: 60.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001201/1.25, allocations: 228.3 kB / 0.6697 GB, free: 60.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008392/1.258, allocations: 3.465 MB / 0.6731 GB, free: 58.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008655/1.267, allocations: 4.068 MB / 0.677 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-05/1.267, allocations: 0 / 0.677 GB, free: 56.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003028/1.268, allocations: 7.734 kB / 0.677 GB, free: 56.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/1.268, allocations: 157.7 kB / 0.6772 GB, free: 56.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02408/1.292, allocations: 15.06 MB / 0.6919 GB, free: 43.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004692/1.296, allocations: 6.86 MB / 0.6986 GB, free: 35.79 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0019/1.298, allocations: 1.404 MB / 0.7 GB, free: 34.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006468/1.305, allocations: 3.939 MB / 0.7038 GB, free: 30.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/1.305, allocations: 47.88 kB / 0.7039 GB, free: 30.34 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 3.587e-06/1.305, allocations: 0 / 0.7039 GB, free: 30.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.01026/1.315, allocations: 5.354 MB / 0.7091 GB, free: 24.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.657e-05/1.315, allocations: 68.72 kB / 0.7091 GB, free: 24.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002305/1.318, allocations: 1.553 MB / 0.7107 GB, free: 23.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/1.318, allocations: 25.7 kB / 0.7107 GB, free: 23.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007971/1.319, allocations: 1.725 MB / 0.7124 GB, free: 21.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/1.319, allocations: 0.5158 MB / 0.7129 GB, free: 20.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/1.319, allocations: 0 / 0.7129 GB, free: 20.92 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/1.319, allocations: 390.5 kB / 0.7133 GB, free: 20.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009146/1.32, allocations: 0.715 MB / 0.7139 GB, free: 19.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/1.321, allocations: 1.435 MB / 0.7153 GB, free: 18.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/1.323, allocations: 1.142 MB / 0.7165 GB, free: 16.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/1.323, allocations: 8 kB / 0.7165 GB, free: 16.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004323/1.327, allocations: 2.757 MB / 0.7192 GB, free: 14.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/1.327, allocations: 20.06 kB / 0.7192 GB, free: 14.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/1.327, allocations: 27.98 kB / 0.7192 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006948/1.328, allocations: 294.3 kB / 0.7195 GB, free: 13.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/1.33, allocations: 495.2 kB / 0.72 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/1.333, allocations: 4.289 MB / 0.7242 GB, free: 8.762 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/1.335, allocations: 55.86 kB / 0.7242 GB, free: 8.707 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002066/1.336, allocations: 95.98 kB / 0.7243 GB, free: 8.613 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.0003293/1.336, allocations: 180.3 kB / 0.7245 GB, free: 8.43 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003335/1.339, allocations: 2.143 MB / 0.7266 GB, free: 6.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003574/1.34, allocations: 217.3 kB / 0.7268 GB, free: 6.016 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003722/1.343, allocations: 2.293 MB / 0.729 GB, free: 3.668 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/1.343, allocations: 16 kB / 0.729 GB, free: 3.652 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/1.343, allocations: 8 kB / 0.729 GB, free: 3.645 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/1.343, allocations: 7.969 kB / 0.729 GB, free: 3.637 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008723/1.352, allocations: 5.051 MB / 0.734 GB, free: 14.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/1.352, allocations: 7.938 kB / 0.734 GB, free: 14.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/1.353, allocations: 271.8 kB / 0.7342 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008704/1.354, allocations: 314.2 kB / 0.7345 GB, free: 13.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.22e-05/1.354, allocations: 12 kB / 0.7345 GB, free: 13.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006592/1.361, allocations: 6.107 MB / 0.7405 GB, free: 7.453 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.361, allocations: 7.984 kB / 0.7405 GB, free: 7.445 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006135/1.367, allocations: 3.416 MB / 0.7439 GB, free: 3.891 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/1.369, allocations: 458.5 kB / 0.7443 GB, free: 3.422 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002873/1.369, allocations: 12 kB / 0.7443 GB, free: 3.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009865/1.37, allocations: 39.95 kB / 0.7443 GB, free: 3.371 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002949/1.37, allocations: 121.1 kB / 0.7445 GB, free: 3.254 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.225e-05/1.37, allocations: 40 kB / 0.7445 GB, free: 3.215 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002158/1.373, allocations: 1.142 MB / 0.7456 GB, free: 2.051 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.373, allocations: 0 / 0.7456 GB, free: 2.051 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003016/1.376, allocations: 0.59 MB / 0.7462 GB, free: 1.461 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.3351/1.711, allocations: 4.584 MB / 0.7507 GB, free: 83.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003238/1.714, allocations: 2.191 MB / 0.7528 GB, free: 83.24 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/1.714, allocations: 0 / 0.7528 GB, free: 83.24 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001666/1.716, allocations: 1.277 MB / 0.7541 GB, free: 82.92 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002479/1.718, allocations: 403.1 kB / 0.7544 GB, free: 82.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/1.731, allocations: 5.913 MB / 0.7602 GB, free: 81.67 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002082/1.733, allocations: 2.591 MB / 0.7627 GB, free: 80.91 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002148/1.735, allocations: 494.9 kB / 0.7632 GB, free: 80.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001642/1.737, allocations: 1.335 MB / 0.7645 GB, free: 80.89 MB / 458.7 MB Notification: Performance of SimCode: time 1.433e-06/1.737, allocations: 0 / 0.7645 GB, free: 80.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1057/1.842, allocations: 49.51 MB / 0.8129 GB, free: 78.25 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000225/1.843, allocations: 147.9 kB / 0.813 GB, free: 78.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.311/5.154, allocations: 2.109 kB / 0.813 GB, free: 78.06 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)