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.0014/0.0014, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 222.9 MB / 239.3 MB, free: 4.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.001353/0.001353, allocations: 196.5 kB / 289.6 MB, free: 2.289 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03497/0.03497, allocations: 8.801 MB / 348.5 MB, free: 4.656 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002595/0.002596, allocations: 80.58 kB / 411.2 MB, free: 41.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09832/0.1009, allocations: 51.56 MB / 462.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01815/0.1191, allocations: 15.92 MB / 478.7 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01458/0.1338, allocations: 5.309 MB / 484 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003864/0.1377, allocations: 95.69 kB / 484.1 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005901/0.1436, allocations: 1.215 MB / 485.3 MB, free: 7.531 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.00835/0.152, allocations: 1.528 MB / 486.8 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004551/0.1566, allocations: 0.9825 MB / 487.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009492/0.1661, allocations: 4.568 MB / 492.4 MB, free: 444 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008205/0.1744, allocations: 3.493 MB / 495.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004604/0.179, allocations: 2.044 MB / 497.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00554/0.1846, allocations: 2.323 MB / 0.4885 GB, free: 8.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001836/0.1865, allocations: 0.5625 MB / 0.4891 GB, free: 7.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003522/0.19, allocations: 0.7732 MB / 0.4898 GB, free: 7.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002065/0.1921, allocations: 1.243 MB / 0.491 GB, free: 5.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005344/0.1975, allocations: 2.377 MB / 0.4933 GB, free: 3.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.2107, allocations: 7.264 MB / 0.5004 GB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.138e-05/0.2108, allocations: 0 / 0.5004 GB, free: 12.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.2108, allocations: 0 / 0.5004 GB, free: 12.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002947/0.2111, allocations: 3.984 kB / 0.5004 GB, free: 12.23 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.01858/0.2297, allocations: 4.826 MB / 0.5052 GB, free: 7.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.2298, allocations: 12.03 kB / 0.5052 GB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001285/0.2311, allocations: 0.5529 MB / 0.5057 GB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005361/0.2364, allocations: 0.9445 MB / 0.5066 GB, free: 5.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005691/0.2422, allocations: 2.663 MB / 0.5092 GB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002644/0.2424, allocations: 275.8 kB / 0.5095 GB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009375/0.2434, allocations: 371.9 kB / 0.5098 GB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01129/0.2547, allocations: 4.684 MB / 0.5144 GB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/0.2549, allocations: 3.906 kB / 0.5144 GB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009384/0.2558, allocations: 152 kB / 0.5146 GB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/0.256, allocations: 159.2 kB / 0.5147 GB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01042/0.2665, allocations: 3.909 MB / 0.5185 GB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1877/0.4542, allocations: 15.51 MB / 0.5337 GB, free: 56.42 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005372/0.4597, allocations: 6.059 MB / 0.5396 GB, free: 52.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00222/0.4619, allocations: 1.377 MB / 0.5409 GB, free: 52.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006493/0.4684, allocations: 4.198 MB / 0.545 GB, free: 50.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.4685, allocations: 58.52 kB / 0.5451 GB, free: 50.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 2.986e-06/0.4685, allocations: 0 / 0.5451 GB, free: 50.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.008982/0.4775, allocations: 5.143 MB / 0.5501 GB, free: 49.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.4775, allocations: 65.88 kB / 0.5502 GB, free: 49.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/0.481, allocations: 1.992 MB / 0.5521 GB, free: 48.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002351/0.4813, allocations: 47.39 kB / 0.5522 GB, free: 48.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009883/0.4823, allocations: 1.669 MB / 0.5538 GB, free: 47.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003242/0.4826, allocations: 480.4 kB / 0.5543 GB, free: 47.2 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005238/0.4831, allocations: 359.3 kB / 0.5546 GB, free: 47.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.946e-05/0.4832, allocations: 302.2 kB / 0.5549 GB, free: 46.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.4842, allocations: 0.6648 MB / 0.5555 GB, free: 46.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.4854, allocations: 1.375 MB / 0.5569 GB, free: 45.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002072/0.4875, allocations: 2.194 MB / 0.559 GB, free: 43.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.4875, allocations: 10.94 kB / 0.559 GB, free: 43.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.00343/0.491, allocations: 2.477 MB / 0.5615 GB, free: 42.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.491, allocations: 19.66 kB / 0.5615 GB, free: 42.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/0.4911, allocations: 23.62 kB / 0.5615 GB, free: 42.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003134/0.4914, allocations: 148.1 kB / 0.5616 GB, free: 42.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.4929, allocations: 456.3 kB / 0.5621 GB, free: 42.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.4944, allocations: 2.123 MB / 0.5642 GB, free: 40.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/0.496, allocations: 90.72 kB / 0.5642 GB, free: 40.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.4962, allocations: 89.53 kB / 0.5643 GB, free: 40.13 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.001682/0.4979, allocations: 1.074 MB / 0.5654 GB, free: 39.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000404/0.4983, allocations: 216.5 kB / 0.5656 GB, free: 39.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002958/0.5013, allocations: 2.01 MB / 0.5675 GB, free: 38.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.5013, allocations: 15.41 kB / 0.5676 GB, free: 38.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.5013, allocations: 3.812 kB / 0.5676 GB, free: 38.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.5013, allocations: 11.69 kB / 0.5676 GB, free: 38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006554/0.5079, allocations: 4.915 MB / 0.5724 GB, free: 34.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.5079, allocations: 3.656 kB / 0.5724 GB, free: 34.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008532/0.5088, allocations: 201.4 kB / 0.5726 GB, free: 34.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007539/0.5095, allocations: 330.7 kB / 0.5729 GB, free: 34.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.46e-05/0.5096, allocations: 34.83 kB / 0.5729 GB, free: 34.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004935/0.5146, allocations: 7.097 MB / 0.5798 GB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5146, allocations: 4 kB / 0.5798 GB, free: 27.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003526/0.5181, allocations: 2.884 MB / 0.5827 GB, free: 24.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008795/0.519, allocations: 434.4 kB / 0.5831 GB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.5193, allocations: 28 kB / 0.5831 GB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009079/0.5202, allocations: 59.97 kB / 0.5832 GB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.5204, allocations: 105 kB / 0.5833 GB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/0.5205, allocations: 40.92 kB / 0.5833 GB, free: 24.19 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001629/0.5222, allocations: 1.339 MB / 0.5846 GB, free: 22.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5222, allocations: 0 / 0.5846 GB, free: 22.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002085/0.5243, allocations: 0.6084 MB / 0.5852 GB, free: 22.23 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.003742/0.528, allocations: 3.489 MB / 0.5886 GB, free: 18.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003743/0.5318, allocations: 2.258 MB / 0.5908 GB, free: 16.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.5318, allocations: 4 kB / 0.5908 GB, free: 16.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.5333, allocations: 1.22 MB / 0.592 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/0.5358, allocations: 0.5772 MB / 0.5926 GB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02821/0.564, allocations: 23.67 MB / 0.6157 GB, free: 4.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002076/0.5661, allocations: 2.406 MB / 0.618 GB, free: 2.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001671/0.5678, allocations: 466.7 kB / 0.6185 GB, free: 1.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/0.5694, allocations: 1.28 MB / 0.6197 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of SimCode: time 6.92e-07/0.5694, allocations: 0 / 0.6197 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1038/0.6732, allocations: 53.64 MB / 0.6721 GB, free: 11.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.98, allocations: 7.703 kB / 0.6721 GB, free: 11.25 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)