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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005563/0.005563, allocations: 96.98 kB / 15.73 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 222.9 MB / 239.4 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 184.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03697/0.03697, allocations: 8.806 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002629/0.002629, allocations: 79.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1075, allocations: 51.56 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.02153/0.1291, allocations: 16.71 MB / 0.5192 GB, free: 9.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.1411, allocations: 5.465 MB / 0.5246 GB, free: 3.738 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003544/0.1447, allocations: 103.6 kB / 0.5247 GB, free: 3.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004615/0.1494, allocations: 1.27 MB / 0.5259 GB, free: 2.355 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.00641/0.1559, allocations: 1.611 MB / 0.5275 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2117/0.3676, allocations: 1.032 MB / 0.5285 GB, free: 5.621 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006353/0.374, allocations: 5.01 MB / 0.5334 GB, free: 5.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006532/0.3805, allocations: 4.313 MB / 0.5376 GB, free: 4.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003763/0.3843, allocations: 2.265 MB / 0.5398 GB, free: 4.453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005217/0.3896, allocations: 2.657 MB / 0.5424 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00224/0.3918, allocations: 0.6198 MB / 0.543 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003409/0.3952, allocations: 0.8392 MB / 0.5438 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002329/0.3976, allocations: 1.429 MB / 0.5452 GB, free: 3.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005731/0.4034, allocations: 2.653 MB / 0.5478 GB, free: 3.164 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01124/0.4146, allocations: 8.148 MB / 0.5558 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4146, allocations: 0 / 0.5558 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4146, allocations: 0 / 0.5558 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002701/0.4149, allocations: 5.25 kB / 0.5558 GB, free: 0.7266 MB / 366.1 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.01815/0.4331, allocations: 5.515 MB / 0.5612 GB, free: 13.02 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4331, allocations: 9.656 kB / 0.5612 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001877/0.435, allocations: 0.5527 MB / 0.5617 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006383/0.4414, allocations: 1.007 MB / 0.5627 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00807/0.4495, allocations: 3.047 MB / 0.5657 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003738/0.4499, allocations: 311.2 kB / 0.566 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001606/0.4516, allocations: 394.8 kB / 0.5663 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/0.4664, allocations: 5.231 MB / 0.5715 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001693/0.4666, allocations: 3.953 kB / 0.5715 GB, free: 5.746 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001129/0.4677, allocations: 164 kB / 0.5716 GB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002124/0.4679, allocations: 168 kB / 0.5718 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01114/0.4791, allocations: 4.466 MB / 0.5761 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03497/0.5141, allocations: 16.65 MB / 0.5924 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01025/0.5244, allocations: 8.432 MB / 0.6006 GB, free: 6.715 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00365/0.5281, allocations: 1.694 MB / 0.6023 GB, free: 5.023 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01117/0.5393, allocations: 4.986 MB / 0.6072 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.371e-05/0.5394, allocations: 55.86 kB / 0.6072 GB, free: 15.85 MB / 430.1 MB Notification: Performance of pre-optimization done (n=158): time 4.298e-06/0.5394, allocations: 0 / 0.6072 GB, free: 15.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=161): time 0.01467/0.5541, allocations: 6.207 MB / 0.6133 GB, free: 9.508 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.5542, allocations: 72.72 kB / 0.6133 GB, free: 9.426 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005386/0.5596, allocations: 2.282 MB / 0.6156 GB, free: 7.117 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003877/0.56, allocations: 53.7 kB / 0.6156 GB, free: 7.059 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001853/0.5619, allocations: 1.898 MB / 0.6175 GB, free: 5.148 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008351/0.5627, allocations: 0.578 MB / 0.618 GB, free: 4.578 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001057/0.5638, allocations: 399.9 kB / 0.6184 GB, free: 4.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.564, allocations: 305.1 kB / 0.6187 GB, free: 3.879 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001867/0.5658, allocations: 0.8436 MB / 0.6195 GB, free: 3.031 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002416/0.5683, allocations: 1.573 MB / 0.6211 GB, free: 1.145 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004362/0.5726, allocations: 2.566 MB / 0.6236 GB, free: 14.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.694e-05/0.5727, allocations: 8 kB / 0.6236 GB, free: 14.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.006964/0.5797, allocations: 2.909 MB / 0.6264 GB, free: 11.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.02e-05/0.5798, allocations: 15.84 kB / 0.6264 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.797e-05/0.5798, allocations: 24 kB / 0.6265 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004299/0.5803, allocations: 134.1 kB / 0.6266 GB, free: 11.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002247/0.5825, allocations: 0.5339 MB / 0.6271 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.5848, allocations: 2.022 MB / 0.6291 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/0.5872, allocations: 107.8 kB / 0.6292 GB, free: 8.617 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003991/0.5876, allocations: 104 kB / 0.6293 GB, free: 8.516 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (270): * Single equations (assignments): 268 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00295/0.5906, allocations: 1.193 MB / 0.6305 GB, free: 7.344 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008142/0.5914, allocations: 261.8 kB / 0.6307 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005444/0.5969, allocations: 2.459 MB / 0.6331 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.96e-05/0.5969, allocations: 16 kB / 0.6331 GB, free: 4.578 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.979e-05/0.597, allocations: 4 kB / 0.6331 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.427e-05/0.597, allocations: 7.969 kB / 0.6331 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/0.61, allocations: 5.802 MB / 0.6388 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.6101, allocations: 0 / 0.6388 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.6115, allocations: 294 kB / 0.6391 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009523/0.6125, allocations: 303.9 kB / 0.6394 GB, free: 14.12 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002088/0.6127, allocations: 39.98 kB / 0.6394 GB, free: 14.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008017/0.6207, allocations: 6.991 MB / 0.6462 GB, free: 6.727 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6208, allocations: 4.031 kB / 0.6462 GB, free: 6.723 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007041/0.6278, allocations: 3.585 MB / 0.6497 GB, free: 3.059 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/0.6294, allocations: 0.5071 MB / 0.6502 GB, free: 2.531 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007634/0.6302, allocations: 43.92 kB / 0.6503 GB, free: 2.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/0.6318, allocations: 83.88 kB / 0.6504 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003645/0.6322, allocations: 120.5 kB / 0.6505 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/0.6324, allocations: 43.98 kB / 0.6505 GB, free: 2.246 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003352/0.6357, allocations: 1.552 MB / 0.652 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6358, allocations: 0 / 0.652 GB, free: 0.6797 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00336/0.6391, allocations: 0.6757 MB / 0.6527 GB, free: 4 kB / 462.1 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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007386/0.6465, allocations: 4.199 MB / 0.6568 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004571/0.6511, allocations: 2.285 MB / 0.659 GB, free: 9.398 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.6512, allocations: 8.125 kB / 0.659 GB, free: 9.391 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002813/0.654, allocations: 1.447 MB / 0.6604 GB, free: 7.906 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004096/0.6581, allocations: 0.6038 MB / 0.661 GB, free: 7.309 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05145/0.7096, allocations: 24.23 MB / 0.6847 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00412/0.7138, allocations: 2.661 MB / 0.6873 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002274/0.7161, allocations: 0.5591 MB / 0.6878 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002616/0.7187, allocations: 1.476 MB / 0.6893 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of SimCode: time 9.62e-07/0.7187, allocations: 0 / 0.6893 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3249/1.044, allocations: 59.58 MB / 0.7475 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.94, allocations: 5.875 kB / 0.7475 GB, free: 183.8 MB / 0.5294 GB (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/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)