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.001318/0.001318, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03926/0.03926, allocations: 8.702 MB / 21.96 MB, free: 3.367 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.344/1.344, allocations: 221.4 MB / 246 MB, free: 3.555 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.0009532/0.0009531, allocations: 90.3 kB / 299.1 MB, free: 3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.469e-05/4.498e-05, allocations: 7.984 kB / 359.6 MB, free: 6.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2942, allocations: 52.55 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.7377, allocations: 116.9 MB / 0.5167 GB, free: 90.95 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/0.738, allocations: 76.33 kB / 0.5167 GB, free: 90.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.659/1.397, allocations: 157.7 MB / 0.6707 GB, free: 36.79 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.823e-06/1.397, allocations: 0 / 0.6707 GB, free: 36.79 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003258/1.397, allocations: 87.47 kB / 0.6708 GB, free: 36.79 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.01135/1.409, allocations: 3.597 MB / 0.6743 GB, free: 35.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/1.409, allocations: 16.06 kB / 0.6743 GB, free: 35.75 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001685/1.411, allocations: 0.5519 MB / 0.6749 GB, free: 35.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005296/1.416, allocations: 0.8829 MB / 0.6757 GB, free: 35.46 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009678/1.426, allocations: 3.599 MB / 0.6793 GB, free: 35.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002944/1.426, allocations: 277.2 kB / 0.6795 GB, free: 35.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001105/1.427, allocations: 368 kB / 0.6799 GB, free: 35.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008529/1.436, allocations: 4.601 MB / 0.6844 GB, free: 34.61 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.692e-05/1.436, allocations: 7.375 kB / 0.6844 GB, free: 34.61 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003478/1.436, allocations: 161.7 kB / 0.6845 GB, free: 34.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/1.436, allocations: 150.2 kB / 0.6847 GB, free: 34.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008061/1.444, allocations: 3.698 MB / 0.6883 GB, free: 34.57 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02443/1.469, allocations: 15.76 MB / 0.7037 GB, free: 30.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005012/1.474, allocations: 6.924 MB / 0.7104 GB, free: 25.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002133/1.476, allocations: 1.475 MB / 0.7119 GB, free: 25.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006629/1.483, allocations: 4.063 MB / 0.7158 GB, free: 24.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/1.483, allocations: 45.19 kB / 0.7159 GB, free: 24.71 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 3.126e-06/1.483, allocations: 0 / 0.7159 GB, free: 24.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.008884/1.492, allocations: 5.094 MB / 0.7209 GB, free: 23.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.445e-05/1.492, allocations: 67.62 kB / 0.7209 GB, free: 23.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00253/1.494, allocations: 1.872 MB / 0.7228 GB, free: 23.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/1.494, allocations: 53.45 kB / 0.7228 GB, free: 23.11 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/1.495, allocations: 1.733 MB / 0.7245 GB, free: 22.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005116/1.496, allocations: 0.5382 MB / 0.725 GB, free: 21.94 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/1.496, allocations: 39.41 kB / 0.7251 GB, free: 21.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000177/1.496, allocations: 392.2 kB / 0.7254 GB, free: 21.63 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/1.497, allocations: 0.7587 MB / 0.7262 GB, free: 21.62 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/1.499, allocations: 1.489 MB / 0.7276 GB, free: 20.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/1.5, allocations: 1.047 MB / 0.7287 GB, free: 20.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/1.5, allocations: 7.75 kB / 0.7287 GB, free: 20.72 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004233/1.504, allocations: 2.859 MB / 0.7315 GB, free: 20.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/1.504, allocations: 17.28 kB / 0.7315 GB, free: 20.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/1.505, allocations: 24.94 kB / 0.7315 GB, free: 20.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007512/1.505, allocations: 307.6 kB / 0.7318 GB, free: 20.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/1.507, allocations: 498.5 kB / 0.7323 GB, free: 20.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003606/1.511, allocations: 4.439 MB / 0.7366 GB, free: 17.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/1.512, allocations: 101.9 kB / 0.7367 GB, free: 17.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/1.513, allocations: 100.3 kB / 0.7368 GB, free: 17.68 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.0003227/1.513, allocations: 241.2 kB / 0.737 GB, free: 17.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002976/1.513, allocations: 234.2 kB / 0.7372 GB, free: 17.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003391/1.517, allocations: 2.296 MB / 0.7395 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/1.517, allocations: 14.81 kB / 0.7395 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/1.517, allocations: 3.781 kB / 0.7395 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/1.517, allocations: 11.22 kB / 0.7395 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007299/1.524, allocations: 5.517 MB / 0.7449 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/1.524, allocations: 3.688 kB / 0.7449 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/1.525, allocations: 272.3 kB / 0.7452 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007168/1.526, allocations: 320.1 kB / 0.7455 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.105e-05/1.526, allocations: 34.86 kB / 0.7455 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004626/1.531, allocations: 6.367 MB / 0.7517 GB, free: 9.695 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.531, allocations: 3.281 kB / 0.7517 GB, free: 9.695 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004128/1.535, allocations: 3.413 MB / 0.7551 GB, free: 7.887 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009971/1.536, allocations: 486 kB / 0.7555 GB, free: 7.543 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002722/1.536, allocations: 35.22 kB / 0.7556 GB, free: 7.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000993/1.537, allocations: 71.64 kB / 0.7556 GB, free: 7.496 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/1.537, allocations: 121.9 kB / 0.7557 GB, free: 7.477 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.463e-05/1.537, allocations: 41.27 kB / 0.7558 GB, free: 7.469 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002005/1.539, allocations: 1.415 MB / 0.7572 GB, free: 22.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 3e-07/1.539, allocations: 0 / 0.7572 GB, free: 22.87 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002363/1.542, allocations: 0.6959 MB / 0.7578 GB, free: 22.79 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.004932/1.547, allocations: 4.669 MB / 0.7624 GB, free: 20.03 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003098/1.55, allocations: 2.318 MB / 0.7647 GB, free: 18.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.778e-06/1.55, allocations: 0.875 kB / 0.7647 GB, free: 18.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001705/1.552, allocations: 1.34 MB / 0.766 GB, free: 18.25 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002661/1.554, allocations: 0.5371 MB / 0.7665 GB, free: 18.08 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/1.566, allocations: 6.134 MB / 0.7725 GB, free: 15.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001926/1.568, allocations: 2.582 MB / 0.775 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001899/1.57, allocations: 0.5091 MB / 0.7755 GB, free: 14.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001552/1.571, allocations: 1.344 MB / 0.7768 GB, free: 13.27 MB / 458.7 MB Notification: Performance of SimCode: time 1.042e-06/1.571, allocations: 0 / 0.7768 GB, free: 13.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/1.674, allocations: 60.43 MB / 0.8358 GB, free: 1.703 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/1.674, allocations: 186.1 kB / 0.836 GB, free: 1.473 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.7/5.374, allocations: 0 / 0.836 GB, free: 1.473 MB / 474.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)