Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1986/0.1986, allocations: 38.53 MB / 353.2 MB, free: 12.56 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 63.91 kB / 493.3 MB, free: 4.902 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3163, allocations: 62.47 MB / 0.5428 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009498/0.3258, allocations: 5.891 MB / 0.5485 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009121/0.3349, allocations: 4.537 MB / 0.553 GB, free: 8.258 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008576/0.3358, allocations: 24.22 kB / 0.553 GB, free: 8.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01172/0.3475, allocations: 5.546 MB / 0.5584 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00146/0.349, allocations: 446 kB / 0.5588 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008588/0.3498, allocations: 271.5 kB / 0.5591 GB, free: 3.801 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00306/0.3529, allocations: 1.809 MB / 0.5608 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009897/0.3539, allocations: 0.6297 MB / 0.5615 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008636/0.3547, allocations: 494.4 kB / 0.5619 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008384/0.3556, allocations: 0.5411 MB / 0.5625 GB, free: 332 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.3557, allocations: 72 kB / 0.5625 GB, free: 260 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000364/0.3561, allocations: 151.8 kB / 0.5627 GB, free: 108 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003871/0.3564, allocations: 339.1 kB / 0.563 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004638/0.3569, allocations: 390.2 kB / 0.5634 GB, free: 15.39 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001559/0.3585, allocations: 1.043 MB / 0.5644 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3585, allocations: 0 / 0.5644 GB, free: 14.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3585, allocations: 0 / 0.5644 GB, free: 14.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.3585, allocations: 0 / 0.5644 GB, free: 14.34 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002198/0.3607, allocations: 0.9719 MB / 0.5653 GB, free: 13.33 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.3607, allocations: 15.98 kB / 0.5654 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.884e-05/0.3608, allocations: 17.44 kB / 0.5654 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001263/0.3609, allocations: 106.7 kB / 0.5655 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004319/0.3613, allocations: 104.4 kB / 0.5656 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.3625, allocations: 0.555 MB / 0.5661 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.689e-05/0.3626, allocations: 82.98 kB / 0.5662 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3627, allocations: 59.95 kB / 0.5662 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.364, allocations: 0.806 MB / 0.567 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.364, allocations: 3.984 kB / 0.567 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.716e-05/0.3641, allocations: 27.98 kB / 0.5671 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.3642, allocations: 53.27 kB / 0.5671 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.3652, allocations: 0.5867 MB / 0.5677 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004466/0.3697, allocations: 2.847 MB / 0.5705 GB, free: 7.891 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000876/0.3706, allocations: 412.8 kB / 0.5709 GB, free: 7.473 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.3709, allocations: 202.3 kB / 0.5711 GB, free: 7.27 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.416e-05/0.371, allocations: 4.656 kB / 0.5711 GB, free: 7.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005712/0.3715, allocations: 354.2 kB / 0.5714 GB, free: 6.895 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.194e-06/0.3715, allocations: 0 / 0.5714 GB, free: 6.895 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003261/0.3748, allocations: 1.681 MB / 0.573 GB, free: 5.152 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.484e-05/0.3749, allocations: 144.4 kB / 0.5732 GB, free: 4.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005757/0.3755, allocations: 449.9 kB / 0.5736 GB, free: 4.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.584e-05/0.3755, allocations: 33.7 kB / 0.5736 GB, free: 4.492 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.3758, allocations: 340.6 kB / 0.574 GB, free: 4.152 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.376, allocations: 170.5 kB / 0.5741 GB, free: 3.984 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.3762, allocations: 114.3 kB / 0.5742 GB, free: 3.867 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002251/0.3764, allocations: 362.8 kB / 0.5746 GB, free: 3.504 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003947/0.3768, allocations: 229.2 kB / 0.5748 GB, free: 3.277 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005515/0.3773, allocations: 393.7 kB / 0.5752 GB, free: 2.828 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002931/0.3803, allocations: 1.248 MB / 0.5764 GB, free: 1.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.3803, allocations: 4 kB / 0.5764 GB, free: 1.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001999/0.3823, allocations: 0.9593 MB / 0.5773 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.187e-05/0.3823, allocations: 37.64 kB / 0.5774 GB, free: 484 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.3823, allocations: 8 kB / 0.5774 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/0.3834, allocations: 309.6 kB / 0.5777 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.3844, allocations: 179.8 kB / 0.5778 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00771/0.3921, allocations: 5.084 MB / 0.5828 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.3926, allocations: 23.98 kB / 0.5828 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.623e-05/0.3927, allocations: 27.98 kB / 0.5829 GB, free: 10.62 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0005209/0.3932, allocations: 310 kB / 0.5832 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.662e-05/0.3933, allocations: 55.67 kB / 0.5832 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.3946, allocations: 0.6548 MB / 0.5838 GB, free: 9.578 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3946, allocations: 4 kB / 0.5839 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3946, allocations: 4 kB / 0.5839 GB, free: 9.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.3946, allocations: 3.984 kB / 0.5839 GB, free: 9.566 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.3973, allocations: 1.476 MB / 0.5853 GB, free: 8.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3973, allocations: 4.094 kB / 0.5853 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.3986, allocations: 187.8 kB / 0.5855 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002433/0.3988, allocations: 86.45 kB / 0.5856 GB, free: 7.723 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.602e-05/0.3989, allocations: 16 kB / 0.5856 GB, free: 7.707 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003339/0.4022, allocations: 3.955 MB / 0.5894 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4022, allocations: 160 / 0.5894 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.4038, allocations: 0.9823 MB / 0.5904 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.4041, allocations: 95.62 kB / 0.5905 GB, free: 2.293 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.138e-05/0.4042, allocations: 8 kB / 0.5905 GB, free: 2.285 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.4044, allocations: 23.92 kB / 0.5905 GB, free: 2.262 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.154e-05/0.4045, allocations: 31.94 kB / 0.5906 GB, free: 2.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.849e-05/0.4046, allocations: 19.98 kB / 0.5906 GB, free: 2.211 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004115/0.405, allocations: 315.1 kB / 0.5909 GB, free: 1.906 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.405, allocations: 4 kB / 0.5909 GB, free: 1.902 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000711/0.4057, allocations: 160 kB / 0.591 GB, free: 1.746 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001831/0.4075, allocations: 1.536 MB / 0.5925 GB, free: 156 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002007/0.4095, allocations: 0.9482 MB / 0.5935 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.4095, allocations: 0 / 0.5935 GB, free: 15.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008627/0.4104, allocations: 0.6291 MB / 0.5941 GB, free: 14.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007723/0.4112, allocations: 140.2 kB / 0.5942 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009818/0.421, allocations: 6.163 MB / 0.6002 GB, free: 7.926 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006778/0.4217, allocations: 0.9761 MB / 0.6012 GB, free: 6.922 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000373/0.422, allocations: 116.7 kB / 0.6013 GB, free: 6.809 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.4223, allocations: 215.4 kB / 0.6015 GB, free: 6.602 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4223, allocations: 0 / 0.6015 GB, free: 6.602 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04992/0.4723, allocations: 14.8 MB / 0.6159 GB, free: 7.988 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.14/14.61, allocations: 14.97 kB / 0.616 GB, free: 7.98 MB / 462.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.59018677700078] Failed to read output from testmodel.py, exit status != 0: 14.802439589984715 14.828654248 14.465058012 Calling exit ...