Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",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.00126/0.00126, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.348/1.348, allocations: 223.2 MB / 238.9 MB, free: 5.547 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.001132/0.001132, allocations: 189.1 kB / 290.2 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.0327/0.0327, allocations: 8.782 MB / 350 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003576, allocations: 16.84 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08134/0.08172, allocations: 52.56 MB / 465.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01273/0.09449, allocations: 12.83 MB / 478.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008526/0.1031, allocations: 5.065 MB / 483.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002048/0.1051, allocations: 83.69 kB / 483.7 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002319/0.1075, allocations: 0.925 MB / 484.6 MB, free: 10.47 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.003576/0.1111, allocations: 1.379 MB / 486 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001725/0.1128, allocations: 0.6757 MB / 486.7 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004871/0.1177, allocations: 3.136 MB / 489.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002975/0.1207, allocations: 2.425 MB / 492.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002112/0.1228, allocations: 1.397 MB / 493.6 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002722/0.1256, allocations: 1.653 MB / 495.3 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005533/0.1261, allocations: 232 kB / 495.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.1276, allocations: 411.7 kB / 495.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000843/0.1285, allocations: 0.802 MB / 496.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.1298, allocations: 0.8278 MB / 497.6 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00617/0.136, allocations: 5.917 MB / 0.4917 GB, free: 7.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.136, allocations: 8 kB / 0.4917 GB, free: 7.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.136, allocations: 0 / 0.4917 GB, free: 7.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001652/0.1362, allocations: 0 / 0.4917 GB, free: 7.531 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01041/0.1466, allocations: 4.089 MB / 0.4957 GB, free: 3.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.1467, allocations: 12.03 kB / 0.4957 GB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001542/0.1482, allocations: 0.5489 MB / 0.4962 GB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005187/0.1534, allocations: 0.9475 MB / 0.4971 GB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005326/0.1588, allocations: 2.527 MB / 0.4996 GB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000197/0.159, allocations: 283.3 kB / 0.4999 GB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005776/0.1596, allocations: 371.8 kB / 0.5002 GB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007854/0.1675, allocations: 4.608 MB / 0.5047 GB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.52e-05/0.1676, allocations: 4 kB / 0.5047 GB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003255/0.1679, allocations: 156 kB / 0.5049 GB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.168, allocations: 155.3 kB / 0.505 GB, free: 9.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006733/0.1748, allocations: 3.874 MB / 0.5088 GB, free: 5.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02445/0.1993, allocations: 15.41 MB / 0.5239 GB, free: 5.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1944/0.3937, allocations: 5.933 MB / 0.5297 GB, free: 57.81 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006554/0.4003, allocations: 4.116 MB / 0.5337 GB, free: 56.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.4003, allocations: 52.25 kB / 0.5337 GB, free: 56.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 2.695e-06/0.4004, allocations: 0 / 0.5337 GB, free: 56.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=149): time 0.01138/0.4117, allocations: 5.37 MB / 0.539 GB, free: 55.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/0.4118, allocations: 66.78 kB / 0.539 GB, free: 55.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003589/0.4154, allocations: 2.133 MB / 0.5411 GB, free: 55.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.4156, allocations: 51.19 kB / 0.5412 GB, free: 55.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001345/0.4169, allocations: 1.715 MB / 0.5428 GB, free: 54.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004368/0.4174, allocations: 0.5148 MB / 0.5434 GB, free: 54.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.842e-05/0.4175, allocations: 44.81 kB / 0.5434 GB, free: 54.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.4176, allocations: 397.2 kB / 0.5438 GB, free: 53.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.4189, allocations: 0.7727 MB / 0.5445 GB, free: 53.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.4204, allocations: 1.531 MB / 0.546 GB, free: 52.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/0.4305, allocations: 2.741 MB / 0.5487 GB, free: 51.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.601e-05/0.4305, allocations: 7.906 kB / 0.5487 GB, free: 51.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.005517/0.4361, allocations: 2.807 MB / 0.5514 GB, free: 50.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.4361, allocations: 23.39 kB / 0.5515 GB, free: 50.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.961e-05/0.4362, allocations: 29.05 kB / 0.5515 GB, free: 50.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006787/0.4368, allocations: 285.5 kB / 0.5518 GB, free: 50.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.4384, allocations: 499.9 kB / 0.5522 GB, free: 50.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003039/0.4415, allocations: 3.203 MB / 0.5554 GB, free: 48.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.4433, allocations: 99.3 kB / 0.5555 GB, free: 48.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/0.4434, allocations: 103.1 kB / 0.5556 GB, free: 47.99 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: smee.is[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (264): * Single equations (assignments): 262 * 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 {(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002136/0.4456, allocations: 1.081 MB / 0.5566 GB, free: 47.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004644/0.4461, allocations: 223.6 kB / 0.5568 GB, free: 47.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003059/0.4491, allocations: 1.808 MB / 0.5586 GB, free: 46.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.4492, allocations: 20.45 kB / 0.5586 GB, free: 46.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.4492, allocations: 8.531 kB / 0.5586 GB, free: 46.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.4492, allocations: 7.641 kB / 0.5586 GB, free: 46.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007056/0.4563, allocations: 5.072 MB / 0.5636 GB, free: 43.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.4563, allocations: 0 / 0.5636 GB, free: 43.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.4574, allocations: 272.6 kB / 0.5638 GB, free: 43.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005781/0.458, allocations: 220 kB / 0.5641 GB, free: 42.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.568e-05/0.4581, allocations: 31.19 kB / 0.5641 GB, free: 42.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002938/0.461, allocations: 3.074 MB / 0.5671 GB, free: 40.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.461, allocations: 3.594 kB / 0.5671 GB, free: 40.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003576/0.4646, allocations: 2.888 MB / 0.5699 GB, free: 37.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009746/0.4656, allocations: 462.3 kB / 0.5704 GB, free: 37.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002585/0.4659, allocations: 39.05 kB / 0.5704 GB, free: 37.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009145/0.4668, allocations: 55.97 kB / 0.5704 GB, free: 37.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/0.467, allocations: 109.1 kB / 0.5705 GB, free: 37.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.978e-05/0.4671, allocations: 43.98 kB / 0.5706 GB, free: 37.25 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001916/0.469, allocations: 1.423 MB / 0.572 GB, free: 35.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.469, allocations: 0 / 0.572 GB, free: 35.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00226/0.4713, allocations: 0.6418 MB / 0.5726 GB, free: 35.17 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re) * 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 (130): * Single equations (assignments): 129 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003614/0.4749, allocations: 4.051 MB / 0.5766 GB, free: 31.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002913/0.4778, allocations: 2.182 MB / 0.5787 GB, free: 28.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.4778, allocations: 0.875 kB / 0.5787 GB, free: 28.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.479, allocations: 0.9649 MB / 0.5796 GB, free: 27.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00202/0.481, allocations: 0.5423 MB / 0.5802 GB, free: 27.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03623/0.5172, allocations: 34.57 MB / 0.6139 GB, free: 7.211 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001988/0.5193, allocations: 2.493 MB / 0.6164 GB, free: 4.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001822/0.5211, allocations: 0.4957 MB / 0.6168 GB, free: 4.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/0.5226, allocations: 1.312 MB / 0.6181 GB, free: 2.875 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.5227, allocations: 4 kB / 0.6181 GB, free: 2.871 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08609/0.6088, allocations: 52.86 MB / 0.6698 GB, free: 14.45 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/0.609, allocations: 210.9 kB / 0.67 GB, free: 14.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.053/3.662, allocations: 0 / 0.67 GB, free: 14.2 MB / 446.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1) Environment - environmentSimulation: