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.001486/0.001486, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001612/0.001612, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.488/1.488, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.1902/0.1902, allocations: 38.52 MB / 352.5 MB, free: 12.54 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.002535/0.002535, allocations: 71.89 kB / 492.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3454, allocations: 62.46 MB / 0.542 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008717/0.3541, allocations: 5.902 MB / 0.5478 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008942/0.363, allocations: 4.534 MB / 0.5522 GB, free: 8.234 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00069/0.3637, allocations: 24.88 kB / 0.5522 GB, free: 8.223 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01203/0.3757, allocations: 5.55 MB / 0.5576 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.3773, allocations: 442 kB / 0.5581 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009941/0.3783, allocations: 275.5 kB / 0.5583 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003419/0.3817, allocations: 1.805 MB / 0.5601 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.3829, allocations: 0.6299 MB / 0.5607 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.3839, allocations: 490.4 kB / 0.5612 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001183/0.3851, allocations: 0.545 MB / 0.5617 GB, free: 308 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000244/0.3853, allocations: 72 kB / 0.5618 GB, free: 236 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005257/0.3858, allocations: 151.8 kB / 0.5619 GB, free: 84 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005223/0.3864, allocations: 335.1 kB / 0.5622 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000703/0.3871, allocations: 402.1 kB / 0.5626 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.3887, allocations: 1.035 MB / 0.5636 GB, free: 14.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3887, allocations: 0 / 0.5636 GB, free: 14.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3887, allocations: 0 / 0.5636 GB, free: 14.32 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.366e-05/0.3887, allocations: 3.938 kB / 0.5636 GB, free: 14.32 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.002633/0.3914, allocations: 0.9719 MB / 0.5646 GB, free: 13.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.3914, allocations: 15.98 kB / 0.5646 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.3916, allocations: 102.7 kB / 0.5647 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005501/0.3922, allocations: 104.4 kB / 0.5648 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.3937, allocations: 0.5591 MB / 0.5653 GB, free: 12.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.3938, allocations: 75 kB / 0.5654 GB, free: 12.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.3939, allocations: 63.95 kB / 0.5655 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00139/0.3953, allocations: 0.8098 MB / 0.5663 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.964e-05/0.3953, allocations: 4 kB / 0.5663 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-05/0.3954, allocations: 23.98 kB / 0.5663 GB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/0.3955, allocations: 53.28 kB / 0.5663 GB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001193/0.3967, allocations: 0.5906 MB / 0.5669 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004729/0.4014, allocations: 2.839 MB / 0.5697 GB, free: 7.891 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008458/0.4023, allocations: 410.1 kB / 0.5701 GB, free: 7.473 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.4026, allocations: 214.3 kB / 0.5703 GB, free: 7.258 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.4027, allocations: 4.656 kB / 0.5703 GB, free: 7.254 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005507/0.4032, allocations: 346.3 kB / 0.5706 GB, free: 6.891 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.395e-06/0.4032, allocations: 0 / 0.5706 GB, free: 6.891 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003424/0.4066, allocations: 1.673 MB / 0.5722 GB, free: 5.156 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.4068, allocations: 148.4 kB / 0.5724 GB, free: 4.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.4074, allocations: 449.9 kB / 0.5728 GB, free: 4.531 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.659e-05/0.4074, allocations: 37.73 kB / 0.5729 GB, free: 4.488 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003127/0.4077, allocations: 340.6 kB / 0.5732 GB, free: 4.148 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/0.4079, allocations: 170.6 kB / 0.5733 GB, free: 3.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.4081, allocations: 110.3 kB / 0.5734 GB, free: 3.867 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.4083, allocations: 362.8 kB / 0.5738 GB, free: 3.504 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004217/0.4087, allocations: 233.1 kB / 0.574 GB, free: 3.273 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006043/0.4093, allocations: 393.8 kB / 0.5744 GB, free: 2.824 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002977/0.4123, allocations: 1.252 MB / 0.5756 GB, free: 1.492 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.4123, allocations: 4 kB / 0.5756 GB, free: 1.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002125/0.4144, allocations: 0.9671 MB / 0.5766 GB, free: 0.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.278e-05/0.4145, allocations: 36.67 kB / 0.5766 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.4145, allocations: 4 kB / 0.5766 GB, free: 468 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.4155, allocations: 313.5 kB / 0.5769 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009697/0.4165, allocations: 167.8 kB / 0.5771 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007592/0.4241, allocations: 5.097 MB / 0.582 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004477/0.4245, allocations: 23.98 kB / 0.5821 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.782e-05/0.4246, allocations: 24 kB / 0.5821 GB, free: 10.61 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.0005299/0.4251, allocations: 303.2 kB / 0.5824 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.4252, allocations: 51.67 kB / 0.5824 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.4265, allocations: 0.6626 MB / 0.5831 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.4265, allocations: 4 kB / 0.5831 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.4265, allocations: 0 / 0.5831 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4265, allocations: 4 kB / 0.5831 GB, free: 9.555 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.002707/0.4293, allocations: 1.48 MB / 0.5845 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4293, allocations: 0 / 0.5845 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.4305, allocations: 191.9 kB / 0.5847 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002434/0.4308, allocations: 82.47 kB / 0.5848 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.114e-05/0.4308, allocations: 15.98 kB / 0.5848 GB, free: 7.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.4344, allocations: 3.951 MB / 0.5887 GB, free: 3.402 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.4344, allocations: 8.016 kB / 0.5887 GB, free: 3.395 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.436, allocations: 0.9786 MB / 0.5896 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002799/0.4363, allocations: 95.56 kB / 0.5897 GB, free: 2.281 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.173e-05/0.4364, allocations: 12 kB / 0.5897 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002932/0.4367, allocations: 15.98 kB / 0.5897 GB, free: 2.254 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.4368, allocations: 39.88 kB / 0.5898 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.4368, allocations: 12 kB / 0.5898 GB, free: 2.203 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004218/0.4373, allocations: 315.1 kB / 0.5901 GB, free: 1.898 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4373, allocations: 4 kB / 0.5901 GB, free: 1.895 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000759/0.438, allocations: 164 kB / 0.5902 GB, free: 1.734 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.001942/0.44, allocations: 1.525 MB / 0.5917 GB, free: 152 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001994/0.442, allocations: 0.9598 MB / 0.5927 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.442, allocations: 0 / 0.5927 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008833/0.4428, allocations: 0.6291 MB / 0.5933 GB, free: 14.47 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.4437, allocations: 135.8 kB / 0.5934 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.454, allocations: 6.157 MB / 0.5994 GB, free: 7.922 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008085/0.4548, allocations: 0.9917 MB / 0.6004 GB, free: 6.902 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003836/0.4552, allocations: 108.7 kB / 0.6005 GB, free: 6.797 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.4555, allocations: 219.4 kB / 0.6007 GB, free: 6.586 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4556, allocations: 0 / 0.6007 GB, free: 6.586 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06503/0.5206, allocations: 14.77 MB / 0.6151 GB, free: 7.992 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/14.53, allocations: 4.062 kB / 0.6151 GB, free: 7.992 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.445672659901902] Failed to read output from testmodel.py, exit status != 0: 14.664493720047176 14.695354678 14.300955896 Calling exit ...