Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.000942/0.000942, allocations: 172.5 kB / 7.646 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.04263/0.04263, allocations: 8.716 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.556/1.556, allocations: 221.5 MB / 240.9 MB, free: 13.14 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.0009982/0.0009981, allocations: 93.39 kB / 293.9 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.925e-05/1.926e-05, allocations: 4 kB / 352.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1147, allocations: 52.56 MB / 405.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4252/0.5399, allocations: 119.6 MB / 0.5126 GB, free: 160 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.5402, allocations: 75.95 kB / 0.5127 GB, free: 84 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6569/1.197, allocations: 161 MB / 0.6699 GB, free: 61.24 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.545e-06/1.197, allocations: 4 kB / 0.67 GB, free: 61.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004578/1.198, allocations: 96.31 kB / 0.67 GB, free: 61.22 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: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.01466/1.212, allocations: 3.927 MB / 0.6739 GB, free: 58.69 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/1.212, allocations: 19.64 kB / 0.6739 GB, free: 58.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006123/1.219, allocations: 0.9219 MB / 0.6748 GB, free: 58.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01209/1.231, allocations: 3.818 MB / 0.6785 GB, free: 55.73 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003541/1.231, allocations: 139.4 kB / 0.6787 GB, free: 55.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002084/1.233, allocations: 230.5 kB / 0.6789 GB, free: 55.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01194/1.245, allocations: 3.794 MB / 0.6826 GB, free: 53.81 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01508/1.26, allocations: 4.435 MB / 0.6869 GB, free: 49.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002366/1.261, allocations: 3.906 kB / 0.6869 GB, free: 49.47 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001461/1.262, allocations: 4 kB / 0.6869 GB, free: 49.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002012/1.262, allocations: 172 kB / 0.6871 GB, free: 49.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03461/1.297, allocations: 16.18 MB / 0.7029 GB, free: 32.79 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006234/1.303, allocations: 8.297 MB / 0.711 GB, free: 23.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002443/1.306, allocations: 1.547 MB / 0.7125 GB, free: 21.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008447/1.314, allocations: 4.764 MB / 0.7172 GB, free: 17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/1.314, allocations: 47.88 kB / 0.7172 GB, free: 16.94 MB / 442.7 MB Notification: Performance of pre-optimization done (n=153): time 4.338e-06/1.314, allocations: 4 kB / 0.7172 GB, free: 16.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.01022/1.324, allocations: 4.731 MB / 0.7218 GB, free: 12.11 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/1.325, allocations: 72.72 kB / 0.7219 GB, free: 12.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003559/1.328, allocations: 1.644 MB / 0.7235 GB, free: 10.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/1.328, allocations: 25.7 kB / 0.7235 GB, free: 10.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00106/1.329, allocations: 1.859 MB / 0.7253 GB, free: 8.434 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003727/1.33, allocations: 0.508 MB / 0.7258 GB, free: 7.918 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/1.33, allocations: 3.938 kB / 0.7258 GB, free: 7.914 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/1.33, allocations: 398 kB / 0.7262 GB, free: 7.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009591/1.331, allocations: 0.7148 MB / 0.7269 GB, free: 6.801 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001247/1.332, allocations: 1.381 MB / 0.7283 GB, free: 5.109 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/1.334, allocations: 1.13 MB / 0.7294 GB, free: 3.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.056e-05/1.334, allocations: 8 kB / 0.7294 GB, free: 3.973 MB / 442.7 MB Notification: Performance of matching and sorting (n=267) (initialization): time 0.004147/1.338, allocations: 2.591 MB / 0.7319 GB, free: 1.348 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/1.338, allocations: 19.94 kB / 0.7319 GB, free: 1.328 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-05/1.338, allocations: 20 kB / 0.7319 GB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003128/1.339, allocations: 122.1 kB / 0.7321 GB, free: 1.184 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/1.341, allocations: 0.5382 MB / 0.7326 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/1.342, allocations: 1.759 MB / 0.7343 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/1.344, allocations: 75.78 kB / 0.7344 GB, free: 14.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002157/1.344, allocations: 92.06 kB / 0.7345 GB, free: 14.61 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (261): * Single equations (assignments): 259 * 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 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003587/1.345, allocations: 170.5 kB / 0.7346 GB, free: 14.43 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004325/1.349, allocations: 2.155 MB / 0.7367 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000658/1.35, allocations: 221.3 kB / 0.7369 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004696/1.355, allocations: 2.267 MB / 0.7392 GB, free: 9.676 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/1.355, allocations: 16 kB / 0.7392 GB, free: 9.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/1.355, allocations: 4 kB / 0.7392 GB, free: 9.656 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-05/1.355, allocations: 7.969 kB / 0.7392 GB, free: 9.648 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/1.367, allocations: 5.049 MB / 0.7441 GB, free: 4.508 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/1.367, allocations: 4 kB / 0.7441 GB, free: 4.504 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001363/1.368, allocations: 295.8 kB / 0.7444 GB, free: 4.215 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008344/1.369, allocations: 290.4 kB / 0.7447 GB, free: 3.922 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/1.369, allocations: 19.94 kB / 0.7447 GB, free: 3.902 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3434/1.713, allocations: 6.068 MB / 0.7506 GB, free: 77 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/1.713, allocations: 5.594 kB / 0.7506 GB, free: 77 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007155/1.72, allocations: 3.395 MB / 0.7539 GB, free: 76.43 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001638/1.722, allocations: 467.7 kB / 0.7544 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008533/1.722, allocations: 8.453 kB / 0.7544 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/1.724, allocations: 71.55 kB / 0.7545 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002999/1.724, allocations: 123.2 kB / 0.7546 GB, free: 76.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.806e-05/1.724, allocations: 47.12 kB / 0.7546 GB, free: 76.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002092/1.726, allocations: 1.216 MB / 0.7558 GB, free: 76.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.726, allocations: 0 / 0.7558 GB, free: 76.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002558/1.729, allocations: 0.6209 MB / 0.7564 GB, free: 76.18 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005223/1.734, allocations: 4.575 MB / 0.7609 GB, free: 74.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002797/1.737, allocations: 1.975 MB / 0.7628 GB, free: 74.49 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/1.737, allocations: 0 / 0.7628 GB, free: 74.49 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/1.739, allocations: 1.289 MB / 0.7641 GB, free: 74.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002339/1.741, allocations: 434.6 kB / 0.7645 GB, free: 74.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/1.753, allocations: 6.332 MB / 0.7707 GB, free: 72.81 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00235/1.755, allocations: 2.729 MB / 0.7733 GB, free: 72.05 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002038/1.757, allocations: 0.5302 MB / 0.7739 GB, free: 72.03 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/1.759, allocations: 1.461 MB / 0.7753 GB, free: 72.02 MB / 458.7 MB Notification: Performance of SimCode: time 1.163e-06/1.759, allocations: 0 / 0.7753 GB, free: 72.02 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/1.861, allocations: 51.08 MB / 0.8252 GB, free: 69.27 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/1.861, allocations: 141.2 kB / 0.8253 GB, free: 69.07 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.489/5.35, allocations: 3.938 kB / 0.8253 GB, free: 69.07 MB / 458.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1)