Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001402/0.001402, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001437/0.001437, allocations: 209.3 kB / 23.73 MB, free: 4.387 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.57/1.57, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1987/0.1987, 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 master/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_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_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.002191/0.002191, allocations: 67.88 kB / 492.5 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3501, allocations: 62.47 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008788/0.3589, allocations: 5.498 MB / 0.5473 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00755/0.3664, allocations: 4.095 MB / 0.5513 GB, free: 8.945 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006498/0.3671, allocations: 24.88 kB / 0.5513 GB, free: 8.934 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01183/0.3789, allocations: 5.436 MB / 0.5566 GB, free: 5.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001475/0.3804, allocations: 434 kB / 0.5571 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009738/0.3814, allocations: 279.5 kB / 0.5573 GB, free: 4.488 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00296/0.3843, allocations: 1.805 MB / 0.5591 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.3855, allocations: 0.622 MB / 0.5597 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008983/0.3864, allocations: 494.4 kB / 0.5602 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009392/0.3873, allocations: 0.5098 MB / 0.5607 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.3875, allocations: 76 kB / 0.5607 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.3879, allocations: 147.8 kB / 0.5609 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003813/0.3883, allocations: 335.1 kB / 0.5612 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004963/0.3888, allocations: 318.6 kB / 0.5615 GB, free: 200 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001373/0.3901, allocations: 1.047 MB / 0.5625 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.3901, allocations: 0 / 0.5625 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.3901, allocations: 0 / 0.5625 GB, free: 15.14 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.951e-05/0.3902, allocations: 0 / 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.002133/0.3923, allocations: 0.9739 MB / 0.5635 GB, free: 14.13 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3923, allocations: 11.98 kB / 0.5635 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.3925, allocations: 106.7 kB / 0.5636 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004578/0.393, allocations: 112.4 kB / 0.5637 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/0.3944, allocations: 0.5513 MB / 0.5642 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.3945, allocations: 75.02 kB / 0.5643 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.3946, allocations: 71.86 kB / 0.5644 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.3961, allocations: 0.8311 MB / 0.5652 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.177e-05/0.3961, allocations: 3.984 kB / 0.5652 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.329e-05/0.3962, allocations: 24 kB / 0.5652 GB, free: 12.26 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001391/0.3963, allocations: 57.22 kB / 0.5653 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.3975, allocations: 0.6118 MB / 0.5659 GB, free: 11.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004592/0.4021, allocations: 2.691 MB / 0.5685 GB, free: 8.801 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008696/0.4029, allocations: 427.8 kB / 0.5689 GB, free: 8.359 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003825/0.4033, allocations: 240 kB / 0.5691 GB, free: 8.113 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.4034, allocations: 4.656 kB / 0.5691 GB, free: 8.109 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005635/0.4039, allocations: 372 kB / 0.5695 GB, free: 7.715 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.853e-06/0.4039, allocations: 0 / 0.5695 GB, free: 7.715 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003408/0.4073, allocations: 1.747 MB / 0.5712 GB, free: 5.895 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.4074, allocations: 140.4 kB / 0.5713 GB, free: 5.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005896/0.408, allocations: 461.8 kB / 0.5718 GB, free: 5.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.64e-05/0.4081, allocations: 37.7 kB / 0.5718 GB, free: 5.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.4084, allocations: 324.7 kB / 0.5721 GB, free: 4.902 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.4085, allocations: 174.6 kB / 0.5723 GB, free: 4.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.4087, allocations: 110.2 kB / 0.5724 GB, free: 4.617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.4089, allocations: 366.8 kB / 0.5727 GB, free: 4.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.4093, allocations: 258.9 kB / 0.573 GB, free: 3.988 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005455/0.4099, allocations: 419.4 kB / 0.5734 GB, free: 3.508 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002957/0.4128, allocations: 1.256 MB / 0.5746 GB, free: 2.172 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.4129, allocations: 0 / 0.5746 GB, free: 2.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001938/0.4148, allocations: 0.9962 MB / 0.5756 GB, free: 1.148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.4148, allocations: 33.7 kB / 0.5756 GB, free: 1.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4148, allocations: 4 kB / 0.5756 GB, free: 1.105 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009299/0.4158, allocations: 308.1 kB / 0.5759 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009917/0.4168, allocations: 175.7 kB / 0.5761 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00716/0.4239, allocations: 5.039 MB / 0.581 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004047/0.4243, allocations: 27.98 kB / 0.581 GB, free: 11.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.833e-05/0.4244, allocations: 20 kB / 0.581 GB, free: 11.32 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.0004599/0.4248, allocations: 303.3 kB / 0.5813 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.398e-05/0.4249, allocations: 51.67 kB / 0.5814 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.4262, allocations: 0.6916 MB / 0.5821 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.4262, allocations: 11.92 kB / 0.5821 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4262, allocations: 4 kB / 0.5821 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4262, allocations: 0 / 0.5821 GB, free: 10.22 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.002635/0.4289, allocations: 1.404 MB / 0.5834 GB, free: 8.734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4289, allocations: 4 kB / 0.5835 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/0.4302, allocations: 187.9 kB / 0.5836 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002381/0.4304, allocations: 86.41 kB / 0.5837 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.052e-05/0.4305, allocations: 11.98 kB / 0.5837 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003629/0.4341, allocations: 3.943 MB / 0.5876 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4341, allocations: 3.938 kB / 0.5876 GB, free: 4.152 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.4359, allocations: 1.033 MB / 0.5886 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/0.4362, allocations: 95.72 kB / 0.5887 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.781e-05/0.4363, allocations: 16 kB / 0.5887 GB, free: 2.957 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.4365, allocations: 15.98 kB / 0.5887 GB, free: 2.941 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.919e-05/0.4366, allocations: 35.94 kB / 0.5887 GB, free: 2.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/0.4367, allocations: 12 kB / 0.5888 GB, free: 2.895 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000474/0.4372, allocations: 315.1 kB / 0.5891 GB, free: 2.586 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4372, allocations: 0 / 0.5891 GB, free: 2.586 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008354/0.438, allocations: 168 kB / 0.5892 GB, free: 2.422 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.002114/0.4401, allocations: 1.594 MB / 0.5908 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002281/0.4424, allocations: 1.006 MB / 0.5918 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4424, allocations: 0.8125 kB / 0.5918 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000983/0.4434, allocations: 0.661 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.0008355/0.4442, allocations: 132.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.01079/0.455, allocations: 6.282 MB / 0.5987 GB, free: 8.277 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.4555, allocations: 378 kB / 0.599 GB, free: 7.883 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003933/0.4559, allocations: 116.7 kB / 0.5991 GB, free: 7.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003367/0.4563, allocations: 223.4 kB / 0.5993 GB, free: 7.555 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4563, allocations: 0 / 0.5993 GB, free: 7.555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06046/0.5167, allocations: 14.91 MB / 0.6139 GB, free: 8.883 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/13.92, allocations: 10.88 kB / 0.6139 GB, free: 8.875 MB / 462.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.017285871319473]