Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.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_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",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.005384/0.005385, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.402/1.402, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001503/0.001503, allocations: 196.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03627/0.03627, allocations: 8.81 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002463/0.002464, allocations: 79.88 kB / 463.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1037, allocations: 51.55 MB / 0.503 GB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01878/0.1225, allocations: 15.94 MB / 0.5185 GB, free: 9.934 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.1333, allocations: 5.294 MB / 0.5237 GB, free: 4.625 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002949/0.1363, allocations: 91.69 kB / 0.5238 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004145/0.1405, allocations: 1.223 MB / 0.525 GB, free: 3.301 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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.005548/0.1461, allocations: 1.537 MB / 0.5265 GB, free: 1.754 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.149, allocations: 0.9702 MB / 0.5275 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2143/0.3633, allocations: 4.59 MB / 0.5319 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004826/0.3682, allocations: 3.492 MB / 0.5353 GB, free: 5.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003706/0.3719, allocations: 2.049 MB / 0.5373 GB, free: 4.855 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004589/0.3765, allocations: 2.333 MB / 0.5396 GB, free: 4.434 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001809/0.3784, allocations: 0.56 MB / 0.5402 GB, free: 4.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/0.3816, allocations: 0.7701 MB / 0.5409 GB, free: 4.434 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001796/0.3834, allocations: 1.239 MB / 0.5421 GB, free: 4.285 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004964/0.3884, allocations: 2.374 MB / 0.5444 GB, free: 3.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.3988, allocations: 7.34 MB / 0.5516 GB, free: 2.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3988, allocations: 0 / 0.5516 GB, free: 2.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3988, allocations: 0 / 0.5516 GB, free: 2.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002303/0.399, allocations: 1.156 kB / 0.5516 GB, free: 2.844 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: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01468/0.4137, allocations: 4.942 MB / 0.5564 GB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.4138, allocations: 9.844 kB / 0.5565 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001251/0.415, allocations: 0.5529 MB / 0.557 GB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005488/0.4205, allocations: 0.9616 MB / 0.5579 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006827/0.4274, allocations: 2.755 MB / 0.5606 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002054/0.4276, allocations: 272.2 kB / 0.5609 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008559/0.4285, allocations: 370.7 kB / 0.5612 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.4386, allocations: 4.689 MB / 0.5658 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-05/0.4388, allocations: 10.14 kB / 0.5658 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004189/0.4392, allocations: 148.9 kB / 0.566 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001329/0.4393, allocations: 157.9 kB / 0.5661 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007655/0.447, allocations: 3.903 MB / 0.5699 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02886/0.4759, allocations: 15.38 MB / 0.585 GB, free: 7.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006715/0.4826, allocations: 6.049 MB / 0.5909 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002688/0.4854, allocations: 1.386 MB / 0.5922 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008154/0.4935, allocations: 4.189 MB / 0.5963 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/0.4936, allocations: 55.62 kB / 0.5964 GB, free: 11.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=133): time 5.69e-06/0.4937, allocations: 0 / 0.5964 GB, free: 11.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01163/0.5053, allocations: 5.193 MB / 0.6014 GB, free: 6.035 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.5054, allocations: 64.72 kB / 0.6015 GB, free: 5.961 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/0.509, allocations: 1.989 MB / 0.6034 GB, free: 3.934 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002053/0.5092, allocations: 45.7 kB / 0.6035 GB, free: 3.883 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001492/0.5107, allocations: 1.722 MB / 0.6052 GB, free: 2.156 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005271/0.5112, allocations: 0.4946 MB / 0.6056 GB, free: 1.668 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005726/0.5118, allocations: 365.3 kB / 0.606 GB, free: 1.309 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5119, allocations: 305.1 kB / 0.6063 GB, free: 1.008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/0.5131, allocations: 0.6598 MB / 0.6069 GB, free: 356 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.5149, allocations: 1.379 MB / 0.6083 GB, free: 14.65 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003082/0.518, allocations: 2.193 MB / 0.6104 GB, free: 12.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.535e-05/0.518, allocations: 4 kB / 0.6104 GB, free: 12.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.004347/0.5224, allocations: 2.486 MB / 0.6128 GB, free: 9.852 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.788e-05/0.5224, allocations: 16.59 kB / 0.6129 GB, free: 9.836 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-05/0.5225, allocations: 31.84 kB / 0.6129 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003838/0.5229, allocations: 145.6 kB / 0.613 GB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.5245, allocations: 459.3 kB / 0.6135 GB, free: 9.242 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002293/0.5268, allocations: 2.12 MB / 0.6155 GB, free: 7.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.5286, allocations: 87.88 kB / 0.6156 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.5288, allocations: 95.98 kB / 0.6157 GB, free: 6.836 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * 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 (242): * Single equations (assignments): 240 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002161/0.531, allocations: 1.072 MB / 0.6168 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005019/0.5315, allocations: 222.6 kB / 0.617 GB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003699/0.5352, allocations: 2.01 MB / 0.6189 GB, free: 3.512 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.5352, allocations: 12 kB / 0.6189 GB, free: 3.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.5353, allocations: 11.98 kB / 0.619 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.5353, allocations: 3.984 kB / 0.619 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009824/0.5451, allocations: 4.906 MB / 0.6238 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.5452, allocations: 4 kB / 0.6238 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008982/0.5461, allocations: 209.8 kB / 0.624 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009324/0.547, allocations: 327 kB / 0.6243 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.5471, allocations: 47.55 kB / 0.6243 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007813/0.555, allocations: 7.076 MB / 0.6312 GB, free: 6.488 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/0.555, allocations: 7.938 kB / 0.6312 GB, free: 6.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004976/0.56, allocations: 2.899 MB / 0.6341 GB, free: 3.523 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/0.5613, allocations: 447.5 kB / 0.6345 GB, free: 3.066 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003531/0.5617, allocations: 28 kB / 0.6345 GB, free: 3.039 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009623/0.5626, allocations: 56.09 kB / 0.6346 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/0.5629, allocations: 105.1 kB / 0.6347 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.638e-05/0.563, allocations: 43.98 kB / 0.6347 GB, free: 2.836 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002268/0.5653, allocations: 1.339 MB / 0.636 GB, free: 1.477 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5653, allocations: 4 kB / 0.636 GB, free: 1.473 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00246/0.5678, allocations: 0.6015 MB / 0.6366 GB, free: 0.8711 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smee.phiMechanical,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) * 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 (106): * Single equations (assignments): 103 * 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,8,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.005095/0.5729, allocations: 3.518 MB / 0.64 GB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003265/0.5762, allocations: 1.885 MB / 0.6419 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.5762, allocations: 4.281 kB / 0.6419 GB, free: 11.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002093/0.5783, allocations: 1.23 MB / 0.6431 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003146/0.5815, allocations: 0.5617 MB / 0.6436 GB, free: 9.652 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03673/0.6182, allocations: 20.96 MB / 0.6641 GB, free: 3.887 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002581/0.6208, allocations: 2.402 MB / 0.6665 GB, free: 1.449 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001641/0.6225, allocations: 466.7 kB / 0.6669 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001989/0.6245, allocations: 1.305 MB / 0.6682 GB, free: 15.71 MB / 494.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6245, allocations: 0 / 0.6682 GB, free: 15.71 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1142/0.7387, allocations: 54.92 MB / 0.7218 GB, free: 9.195 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/14.09, allocations: 11.83 kB / 0.7218 GB, free: 9.184 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)