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: 111.1 kB / 20.44 MB, free: 1.199 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.001457/0.001457, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.577/1.577, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.1994/0.1994, allocations: 38.55 MB / 352.5 MB, free: 12.3 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",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.002564/0.002564, allocations: 75.88 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3293, allocations: 62.46 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007841/0.3371, allocations: 5.507 MB / 0.5473 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007377/0.3445, allocations: 4.099 MB / 0.5513 GB, free: 8.934 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007551/0.3452, allocations: 25.09 kB / 0.5513 GB, free: 8.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0116/0.3568, allocations: 5.427 MB / 0.5566 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001421/0.3583, allocations: 438 kB / 0.5571 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009882/0.3592, allocations: 283.5 kB / 0.5573 GB, free: 4.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003028/0.3623, allocations: 1.793 MB / 0.5591 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001249/0.3635, allocations: 0.6259 MB / 0.5597 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.3647, allocations: 494.5 kB / 0.5602 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.3658, allocations: 0.5059 MB / 0.5607 GB, free: 1.051 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002609/0.3661, allocations: 72 kB / 0.5607 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005227/0.3666, allocations: 147.8 kB / 0.5609 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005042/0.3671, allocations: 327.1 kB / 0.5612 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007495/0.3679, allocations: 334.5 kB / 0.5615 GB, free: 192 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001569/0.3694, allocations: 1.039 MB / 0.5625 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3694, allocations: 0 / 0.5625 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3694, allocations: 3.938 kB / 0.5625 GB, free: 15.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.231e-05/0.3695, allocations: 4 kB / 0.5625 GB, free: 15.14 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.002454/0.372, allocations: 0.9661 MB / 0.5635 GB, free: 14.13 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.372, allocations: 11.98 kB / 0.5635 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001407/0.3721, allocations: 114.7 kB / 0.5636 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004841/0.3726, allocations: 108.4 kB / 0.5637 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001363/0.374, allocations: 0.5552 MB / 0.5642 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.3741, allocations: 79 kB / 0.5643 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.3742, allocations: 63.94 kB / 0.5644 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001376/0.3756, allocations: 0.8349 MB / 0.5652 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.747e-05/0.3756, allocations: 11.94 kB / 0.5652 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.071e-05/0.3757, allocations: 23.98 kB / 0.5652 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.3758, allocations: 53.28 kB / 0.5653 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.3769, allocations: 0.6079 MB / 0.5659 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004507/0.3814, allocations: 2.703 MB / 0.5685 GB, free: 8.781 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000865/0.3822, allocations: 422.9 kB / 0.5689 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003744/0.3826, allocations: 236 kB / 0.5691 GB, free: 8.105 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.241e-05/0.3826, allocations: 8.641 kB / 0.5691 GB, free: 8.098 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000542/0.3832, allocations: 372 kB / 0.5695 GB, free: 7.703 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.175e-06/0.3832, allocations: 0 / 0.5695 GB, free: 7.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.00325/0.3864, allocations: 1.743 MB / 0.5712 GB, free: 5.887 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.575e-05/0.3865, allocations: 144.4 kB / 0.5713 GB, free: 5.715 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.3871, allocations: 457.8 kB / 0.5718 GB, free: 5.262 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.3871, allocations: 33.7 kB / 0.5718 GB, free: 5.223 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.3874, allocations: 328.7 kB / 0.5721 GB, free: 4.895 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.3876, allocations: 170.6 kB / 0.5723 GB, free: 4.727 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/0.3877, allocations: 110.3 kB / 0.5724 GB, free: 4.613 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.3879, allocations: 366.8 kB / 0.5727 GB, free: 4.246 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004064/0.3883, allocations: 258.8 kB / 0.573 GB, free: 3.984 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.3889, allocations: 421.1 kB / 0.5734 GB, free: 3.504 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002828/0.3917, allocations: 1.252 MB / 0.5746 GB, free: 2.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3917, allocations: 8 kB / 0.5746 GB, free: 2.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001907/0.3936, allocations: 0.9883 MB / 0.5756 GB, free: 1.148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.3937, allocations: 37.64 kB / 0.5756 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.3937, allocations: 4 kB / 0.5756 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009453/0.3946, allocations: 309.5 kB / 0.5759 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.3956, allocations: 175.8 kB / 0.5761 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007417/0.403, allocations: 5.038 MB / 0.581 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/0.4035, allocations: 27.98 kB / 0.581 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.307e-05/0.4035, allocations: 27.98 kB / 0.5811 GB, free: 11.31 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.0004797/0.404, allocations: 303.2 kB / 0.5813 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.768e-05/0.4041, allocations: 59.66 kB / 0.5814 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.4053, allocations: 0.676 MB / 0.5821 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.4053, allocations: 8.094 kB / 0.5821 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.4053, allocations: 3.984 kB / 0.5821 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4053, allocations: 3.984 kB / 0.5821 GB, free: 10.21 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.002563/0.4079, allocations: 1.412 MB / 0.5835 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.4079, allocations: 0 / 0.5835 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/0.4092, allocations: 191.9 kB / 0.5836 GB, free: 8.535 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000255/0.4095, allocations: 86.45 kB / 0.5837 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/0.4095, allocations: 12 kB / 0.5837 GB, free: 8.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003584/0.4131, allocations: 3.931 MB / 0.5876 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.4131, allocations: 4.031 kB / 0.5876 GB, free: 4.152 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.4149, allocations: 1.029 MB / 0.5886 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003175/0.4152, allocations: 95.56 kB / 0.5887 GB, free: 2.977 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.982e-05/0.4153, allocations: 20 kB / 0.5887 GB, free: 2.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.4156, allocations: 15.98 kB / 0.5887 GB, free: 2.941 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.4157, allocations: 43.81 kB / 0.5887 GB, free: 2.898 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.4158, allocations: 11.98 kB / 0.5888 GB, free: 2.887 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004446/0.4162, allocations: 315.1 kB / 0.5891 GB, free: 2.578 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4162, allocations: 0 / 0.5891 GB, free: 2.578 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007237/0.4169, allocations: 164 kB / 0.5892 GB, free: 2.418 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.002014/0.419, allocations: 1.597 MB / 0.5908 GB, free: 0.75 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00207/0.421, allocations: 1.007 MB / 0.5918 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.421, allocations: 0 / 0.5918 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009514/0.422, allocations: 0.6532 MB / 0.5924 GB, free: 14.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007768/0.4228, allocations: 133.7 kB / 0.5925 GB, free: 14.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009951/0.4327, allocations: 6.282 MB / 0.5987 GB, free: 8.273 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004963/0.4332, allocations: 385.9 kB / 0.599 GB, free: 7.871 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003795/0.4336, allocations: 120.7 kB / 0.5991 GB, free: 7.754 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003445/0.4339, allocations: 215.4 kB / 0.5993 GB, free: 7.547 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4339, allocations: 0 / 0.5993 GB, free: 7.547 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05776/0.4917, allocations: 14.92 MB / 0.6139 GB, free: 8.871 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.1, allocations: 6.75 kB / 0.6139 GB, free: 8.867 MB / 462.1 MB " [Timeout remaining time 646] (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.094373053871095] Failed to read output from testmodel.py, exit status != 0: 14.231809099204838 14.262356239 13.887251447 Calling exit ...