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.001276/0.001276, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.268/1.268, allocations: 222.9 MB / 239 MB, free: 4.715 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.001294/0.001294, allocations: 196.3 kB / 289.3 MB, free: 2.457 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03375/0.03375, allocations: 8.79 MB / 348.2 MB, free: 4.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 80.2 kB / 410.7 MB, free: 42.21 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07619/0.07764, allocations: 51.56 MB / 462.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01605/0.09374, allocations: 15.73 MB / 478 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009283/0.1031, allocations: 5.216 MB / 483.2 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002609/0.1057, allocations: 91.69 kB / 483.3 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003602/0.1094, allocations: 1.073 MB / 484.4 MB, free: 8.418 MB / 318.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.004826/0.1142, allocations: 1.36 MB / 485.7 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002597/0.1168, allocations: 0.9092 MB / 486.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005971/0.1228, allocations: 4.695 MB / 491.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004949/0.1278, allocations: 3.485 MB / 494.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002766/0.1306, allocations: 1.958 MB / 496.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003437/0.134, allocations: 2.304 MB / 499.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001522/0.1356, allocations: 0.5547 MB / 499.6 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002534/0.1381, allocations: 0.7732 MB / 0.4887 GB, free: 8.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001535/0.1397, allocations: 1.239 MB / 0.4899 GB, free: 7.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003764/0.1434, allocations: 2.369 MB / 0.4922 GB, free: 4.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007564/0.151, allocations: 7.228 MB / 0.4993 GB, free: 13.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.151, allocations: 0 / 0.4993 GB, free: 13.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.151, allocations: 0 / 0.4993 GB, free: 13.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000149/0.1512, allocations: 0 / 0.4993 GB, free: 13.4 MB / 350.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.01137/0.1626, allocations: 4.822 MB / 0.504 GB, free: 8.504 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1626, allocations: 8.031 kB / 0.504 GB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008577/0.1635, allocations: 0.5568 MB / 0.5045 GB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005089/0.1686, allocations: 0.9407 MB / 0.5054 GB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004909/0.1735, allocations: 2.562 MB / 0.5079 GB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.1737, allocations: 279.8 kB / 0.5082 GB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006307/0.1744, allocations: 371.8 kB / 0.5086 GB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008014/0.1824, allocations: 4.688 MB / 0.5131 GB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.857e-05/0.1825, allocations: 0 / 0.5131 GB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003431/0.1828, allocations: 152 kB / 0.5133 GB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/0.183, allocations: 155.3 kB / 0.5134 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006504/0.1895, allocations: 3.905 MB / 0.5172 GB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1607/0.3502, allocations: 15.55 MB / 0.5324 GB, free: 57.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004383/0.3546, allocations: 6.057 MB / 0.5384 GB, free: 53.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001987/0.3566, allocations: 1.384 MB / 0.5397 GB, free: 53.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005807/0.3625, allocations: 4.235 MB / 0.5438 GB, free: 52.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.3625, allocations: 49.12 kB / 0.5439 GB, free: 51.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 2.625e-06/0.3625, allocations: 4.516 kB / 0.5439 GB, free: 51.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.008105/0.3706, allocations: 5.175 MB / 0.5489 GB, free: 50.55 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.3707, allocations: 65.59 kB / 0.549 GB, free: 50.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002388/0.373, allocations: 2.013 MB / 0.551 GB, free: 49.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.629e-05/0.3731, allocations: 51.39 kB / 0.551 GB, free: 49.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007052/0.3738, allocations: 1.664 MB / 0.5526 GB, free: 48.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.3741, allocations: 483.6 kB / 0.5531 GB, free: 48.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000476/0.3746, allocations: 359.5 kB / 0.5535 GB, free: 48.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.131e-05/0.3746, allocations: 309.4 kB / 0.5537 GB, free: 47.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.3757, allocations: 0.6598 MB / 0.5544 GB, free: 47.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/0.3767, allocations: 1.38 MB / 0.5557 GB, free: 46.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001894/0.3786, allocations: 2.198 MB / 0.5579 GB, free: 44.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.3786, allocations: 11.81 kB / 0.5579 GB, free: 44.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.002921/0.3815, allocations: 2.478 MB / 0.5603 GB, free: 43.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.3816, allocations: 15.59 kB / 0.5603 GB, free: 43.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.3816, allocations: 23.38 kB / 0.5604 GB, free: 43.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003147/0.3819, allocations: 148.4 kB / 0.5605 GB, free: 43.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.3834, allocations: 457.1 kB / 0.5609 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.3848, allocations: 2.124 MB / 0.563 GB, free: 41.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.3861, allocations: 82.06 kB / 0.5631 GB, free: 41.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/0.3862, allocations: 89.25 kB / 0.5632 GB, free: 41.39 MB / 366.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.001296/0.3875, allocations: 1.072 MB / 0.5642 GB, free: 40.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.3877, allocations: 217.2 kB / 0.5644 GB, free: 40.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002608/0.3903, allocations: 2.021 MB / 0.5664 GB, free: 39.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.3904, allocations: 17.41 kB / 0.5664 GB, free: 39.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.3904, allocations: 3.469 kB / 0.5664 GB, free: 39.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.3904, allocations: 9.609 kB / 0.5664 GB, free: 39.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005551/0.3959, allocations: 4.949 MB / 0.5713 GB, free: 36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.396, allocations: 0 / 0.5713 GB, free: 36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007832/0.3968, allocations: 206.5 kB / 0.5715 GB, free: 35.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007214/0.3975, allocations: 343.2 kB / 0.5718 GB, free: 35.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.346e-05/0.3976, allocations: 37.06 kB / 0.5718 GB, free: 35.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004657/0.4022, allocations: 7.158 MB / 0.5788 GB, free: 29.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4022, allocations: 0 / 0.5788 GB, free: 29.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003134/0.4054, allocations: 2.893 MB / 0.5816 GB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006242/0.406, allocations: 441.7 kB / 0.5821 GB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000248/0.4063, allocations: 35.98 kB / 0.5821 GB, free: 25.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008899/0.4072, allocations: 51.97 kB / 0.5821 GB, free: 25.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.4074, allocations: 112.3 kB / 0.5822 GB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-05/0.4074, allocations: 40 kB / 0.5823 GB, free: 25.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001414/0.4089, allocations: 1.362 MB / 0.5836 GB, free: 24.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4089, allocations: 0 / 0.5836 GB, free: 24.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0017/0.4106, allocations: 0.6055 MB / 0.5842 GB, free: 23.42 MB / 366.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.003364/0.4139, allocations: 3.51 MB / 0.5876 GB, free: 19.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003484/0.4174, allocations: 2.255 MB / 0.5898 GB, free: 17.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4175, allocations: 0 / 0.5898 GB, free: 17.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001332/0.4188, allocations: 1.225 MB / 0.591 GB, free: 16.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.4209, allocations: 0.5798 MB / 0.5916 GB, free: 15.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03553/0.4565, allocations: 25.37 MB / 0.6164 GB, free: 4.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/0.4585, allocations: 2.405 MB / 0.6187 GB, free: 1.699 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001552/0.46, allocations: 470.6 kB / 0.6192 GB, free: 1.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001473/0.4615, allocations: 1.288 MB / 0.6204 GB, free: 15.95 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4615, allocations: 0 / 0.6204 GB, free: 15.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2971/0.7586, allocations: 53.75 MB / 0.6729 GB, free: 10.64 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.7588, allocations: 231.9 kB / 0.6731 GB, free: 10.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.857/3.616, allocations: 0 / 0.6731 GB, free: 10.38 MB / 446.1 MB (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)