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.001039/0.001039, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.265/1.265, allocations: 222.9 MB / 238.9 MB, free: 4.719 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.001172/0.001172, allocations: 196.5 kB / 289.1 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0345/0.0345, allocations: 8.793 MB / 348.1 MB, free: 4.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 80.23 kB / 410.5 MB, free: 42.38 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0673/0.06876, allocations: 51.56 MB / 462.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01509/0.08389, allocations: 15.73 MB / 477.8 MB, free: 15.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007977/0.09189, allocations: 5.247 MB / 483.1 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001898/0.0938, allocations: 91.69 kB / 483.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002784/0.0966, allocations: 1.069 MB / 484.2 MB, free: 8.613 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.003197/0.09983, allocations: 1.383 MB / 485.6 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.1016, allocations: 0.9193 MB / 486.5 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004151/0.1057, allocations: 4.818 MB / 491.3 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002966/0.1087, allocations: 2.89 MB / 494.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.1103, allocations: 1.665 MB / 495.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001886/0.1122, allocations: 2.151 MB / 498 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004588/0.1127, allocations: 336 kB / 498.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.1137, allocations: 0.5427 MB / 498.9 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007295/0.1145, allocations: 0.9965 MB / 499.9 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001714/0.1162, allocations: 2.127 MB / 0.4903 GB, free: 6.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004918/0.1211, allocations: 7.076 MB / 0.4972 GB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1211, allocations: 0 / 0.4972 GB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.51e-07/0.1211, allocations: 0 / 0.4972 GB, free: 15.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.086e-05/0.1212, allocations: 4 kB / 0.4972 GB, free: 15.57 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.009474/0.1307, allocations: 4.814 MB / 0.5019 GB, free: 10.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1307, allocations: 12.03 kB / 0.5019 GB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007337/0.1315, allocations: 0.549 MB / 0.5024 GB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004839/0.1363, allocations: 0.9406 MB / 0.5033 GB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003952/0.1403, allocations: 2.562 MB / 0.5059 GB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000188/0.1405, allocations: 279.8 kB / 0.5061 GB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004618/0.141, allocations: 371.8 kB / 0.5065 GB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006762/0.1477, allocations: 4.684 MB / 0.511 GB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.156e-05/0.1478, allocations: 0 / 0.511 GB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003133/0.1481, allocations: 152 kB / 0.5112 GB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.1482, allocations: 163.2 kB / 0.5113 GB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005867/0.1541, allocations: 3.901 MB / 0.5152 GB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1579/0.3121, allocations: 15.57 MB / 0.5304 GB, free: 57.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004355/0.3164, allocations: 6.05 MB / 0.5363 GB, free: 53.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00203/0.3185, allocations: 1.38 MB / 0.5376 GB, free: 53.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005842/0.3243, allocations: 4.232 MB / 0.5417 GB, free: 52.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.3244, allocations: 50.3 kB / 0.5418 GB, free: 52.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=133): time 2.685e-06/0.3244, allocations: 5.219 kB / 0.5418 GB, free: 52.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=137): time 0.008358/0.3328, allocations: 5.174 MB / 0.5469 GB, free: 51.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.3328, allocations: 66.91 kB / 0.5469 GB, free: 51.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002386/0.3352, allocations: 2.01 MB / 0.5489 GB, free: 50.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.919e-05/0.3353, allocations: 48.66 kB / 0.5489 GB, free: 50.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007154/0.336, allocations: 1.664 MB / 0.5506 GB, free: 49.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.3362, allocations: 481.4 kB / 0.551 GB, free: 49.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004561/0.3367, allocations: 369.8 kB / 0.5514 GB, free: 49.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.108e-05/0.3367, allocations: 305.1 kB / 0.5517 GB, free: 48.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009609/0.3377, allocations: 0.662 MB / 0.5523 GB, free: 48.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.339, allocations: 1.381 MB / 0.5536 GB, free: 47.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/0.341, allocations: 2.197 MB / 0.5558 GB, free: 45.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.3411, allocations: 7.938 kB / 0.5558 GB, free: 45.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.002962/0.344, allocations: 2.482 MB / 0.5582 GB, free: 44.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3441, allocations: 15.69 kB / 0.5582 GB, free: 44.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.3441, allocations: 28.27 kB / 0.5583 GB, free: 44.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/0.3444, allocations: 145.4 kB / 0.5584 GB, free: 44.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.3459, allocations: 465.7 kB / 0.5589 GB, free: 44.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.3472, allocations: 1.941 MB / 0.5607 GB, free: 43.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.3485, allocations: 76.38 kB / 0.5608 GB, free: 43.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.3486, allocations: 94.52 kB / 0.5609 GB, free: 43.07 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.001246/0.3499, allocations: 1.067 MB / 0.562 GB, free: 42.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002268/0.3501, allocations: 216.6 kB / 0.5622 GB, free: 42.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002648/0.3528, allocations: 2.019 MB / 0.5641 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3528, allocations: 12.39 kB / 0.5641 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3528, allocations: 7.844 kB / 0.5641 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.3528, allocations: 3.984 kB / 0.5642 GB, free: 41.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005593/0.3584, allocations: 4.963 MB / 0.569 GB, free: 37.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.3584, allocations: 3.969 kB / 0.569 GB, free: 37.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007949/0.3592, allocations: 201 kB / 0.5692 GB, free: 37.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007687/0.36, allocations: 330.6 kB / 0.5695 GB, free: 37.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.226e-05/0.3601, allocations: 35.92 kB / 0.5695 GB, free: 37.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004593/0.3647, allocations: 6.521 MB / 0.5759 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3647, allocations: 3.938 kB / 0.5759 GB, free: 31.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003308/0.368, allocations: 2.892 MB / 0.5787 GB, free: 29.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005811/0.3686, allocations: 434.4 kB / 0.5792 GB, free: 28.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/0.3689, allocations: 35.98 kB / 0.5792 GB, free: 28.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000914/0.3698, allocations: 55.97 kB / 0.5792 GB, free: 28.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.37, allocations: 109.5 kB / 0.5793 GB, free: 28.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/0.37, allocations: 39.98 kB / 0.5794 GB, free: 28.35 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001458/0.3715, allocations: 1.364 MB / 0.5807 GB, free: 26.97 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3715, allocations: 0 / 0.5807 GB, free: 26.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001702/0.3732, allocations: 0.6045 MB / 0.5813 GB, free: 26.37 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.003445/0.3767, allocations: 3.513 MB / 0.5847 GB, free: 22.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002158/0.3788, allocations: 1.885 MB / 0.5866 GB, free: 20.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3789, allocations: 4 kB / 0.5866 GB, free: 20.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.3802, allocations: 1.221 MB / 0.5878 GB, free: 19.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002058/0.3823, allocations: 0.5372 MB / 0.5883 GB, free: 19.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03297/0.4153, allocations: 25.4 MB / 0.6131 GB, free: 7.465 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001905/0.4172, allocations: 2.401 MB / 0.6154 GB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001541/0.4187, allocations: 462.6 kB / 0.6159 GB, free: 4.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00144/0.4202, allocations: 1.292 MB / 0.6172 GB, free: 3.285 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4202, allocations: 0 / 0.6172 GB, free: 3.285 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0708/0.491, allocations: 52.61 MB / 0.6685 GB, free: 15.08 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002091/0.4912, allocations: 228.8 kB / 0.6687 GB, free: 14.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.611/3.102, allocations: 6.234 kB / 0.6688 GB, free: 14.82 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)