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.00136/0.00136, allocations: 73.89 kB / 20.49 MB, free: 1.246 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.001525/0.001525, allocations: 159.2 kB / 23.75 MB, free: 4.219 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.472/1.472, allocations: 177.2 MB / 204.1 MB, free: 9.293 MB / 190.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.2181/0.2181, allocations: 29.44 MB / 289.9 MB, free: 3.414 MB / 270.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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") [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.002148/0.002148, allocations: 59.91 kB / 430.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.315, allocations: 62.45 MB / 492.9 MB, free: 1.977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.00804/0.3231, allocations: 5.504 MB / 498.4 MB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006693/0.3298, allocations: 4.086 MB / 0.4907 GB, free: 8.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.3301, allocations: 27.75 kB / 0.4907 GB, free: 8.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01133/0.3415, allocations: 5.451 MB / 0.496 GB, free: 2.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001291/0.3428, allocations: 442 kB / 0.4965 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008913/0.3436, allocations: 279.5 kB / 0.4967 GB, free: 2.156 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002745/0.3464, allocations: 1.816 MB / 0.4985 GB, free: 340 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008789/0.3473, allocations: 0.6182 MB / 0.4991 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000995/0.3483, allocations: 0.6506 MB / 0.4998 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007435/0.349, allocations: 0.5137 MB / 0.5003 GB, free: 14.54 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.3491, allocations: 76 kB / 0.5003 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003025/0.3494, allocations: 143.8 kB / 0.5005 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003642/0.3498, allocations: 331.1 kB / 0.5008 GB, free: 14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.3502, allocations: 322.6 kB / 0.5011 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001284/0.3515, allocations: 1.039 MB / 0.5021 GB, free: 12.64 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3515, allocations: 0 / 0.5021 GB, free: 12.64 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3515, allocations: 0 / 0.5021 GB, free: 12.64 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.695e-05/0.3515, allocations: 3.938 kB / 0.5021 GB, free: 12.64 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.001925/0.3534, allocations: 0.9797 MB / 0.5031 GB, free: 11.62 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3535, allocations: 11.98 kB / 0.5031 GB, free: 11.61 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004162/0.3539, allocations: 104.4 kB / 0.5032 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.355, allocations: 0.5593 MB / 0.5037 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.3552, allocations: 75 kB / 0.5038 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.3553, allocations: 67.94 kB / 0.5039 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.3566, allocations: 0.8389 MB / 0.5047 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/0.3566, allocations: 7.984 kB / 0.5047 GB, free: 9.879 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.101e-05/0.3567, allocations: 27.94 kB / 0.5047 GB, free: 9.852 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001364/0.3568, allocations: 53.28 kB / 0.5048 GB, free: 9.801 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.3579, allocations: 0.6079 MB / 0.5054 GB, free: 9.184 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003907/0.3618, allocations: 2.599 MB / 0.5079 GB, free: 6.504 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008409/0.3626, allocations: 427.8 kB / 0.5083 GB, free: 6.062 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/0.363, allocations: 240 kB / 0.5085 GB, free: 5.816 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.384e-05/0.363, allocations: 4.656 kB / 0.5085 GB, free: 5.812 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005225/0.3635, allocations: 376.1 kB / 0.5089 GB, free: 5.414 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.3635, allocations: 0 / 0.5089 GB, free: 5.414 MB / 414.1 MB Notification: Performance of matching and sorting (n=45): time 0.003241/0.3668, allocations: 1.727 MB / 0.5106 GB, free: 3.613 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.799e-05/0.3669, allocations: 140.5 kB / 0.5107 GB, free: 3.445 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004876/0.3674, allocations: 417.7 kB / 0.5111 GB, free: 3.031 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.3674, allocations: 41.69 kB / 0.5111 GB, free: 2.984 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002935/0.3677, allocations: 348.5 kB / 0.5115 GB, free: 2.637 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.3679, allocations: 166.7 kB / 0.5116 GB, free: 2.473 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001904/0.368, allocations: 114.3 kB / 0.5117 GB, free: 2.355 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3682, allocations: 358.8 kB / 0.5121 GB, free: 1.996 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.3686, allocations: 262.9 kB / 0.5123 GB, free: 1.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005447/0.3692, allocations: 419.5 kB / 0.5127 GB, free: 1.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.372, allocations: 1.258 MB / 0.514 GB, free: 15.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.799e-05/0.3721, allocations: 4 kB / 0.514 GB, free: 15.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00188/0.3739, allocations: 0.9817 MB / 0.5149 GB, free: 14.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.056e-05/0.374, allocations: 34.2 kB / 0.515 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.374, allocations: 8 kB / 0.515 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009341/0.3749, allocations: 301.5 kB / 0.5153 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000941/0.3759, allocations: 175.7 kB / 0.5154 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007244/0.3831, allocations: 4.997 MB / 0.5203 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000388/0.3835, allocations: 23.98 kB / 0.5203 GB, free: 9.164 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.3836, allocations: 24 kB / 0.5204 GB, free: 9.141 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.0005116/0.3841, allocations: 295.3 kB / 0.5206 GB, free: 8.836 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.779e-05/0.3842, allocations: 51.67 kB / 0.5207 GB, free: 8.785 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001309/0.3855, allocations: 0.6914 MB / 0.5214 GB, free: 8.062 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.3855, allocations: 4 kB / 0.5214 GB, free: 8.059 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3855, allocations: 4 kB / 0.5214 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3855, allocations: 0 / 0.5214 GB, free: 8.055 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.002337/0.3878, allocations: 1.332 MB / 0.5227 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3878, allocations: 3.938 kB / 0.5227 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.3891, allocations: 187.9 kB / 0.5229 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002371/0.3893, allocations: 78.45 kB / 0.5229 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.098e-05/0.3894, allocations: 16 kB / 0.5229 GB, free: 6.367 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003261/0.3926, allocations: 3.882 MB / 0.5267 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3926, allocations: 0 / 0.5267 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/0.3942, allocations: 1.028 MB / 0.5277 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002155/0.3944, allocations: 91.62 kB / 0.5278 GB, free: 1.008 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.824e-05/0.3945, allocations: 16 kB / 0.5278 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.3948, allocations: 11.98 kB / 0.5278 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.356e-05/0.3949, allocations: 36.03 kB / 0.5279 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/0.3949, allocations: 19.94 kB / 0.5279 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003536/0.3952, allocations: 291.1 kB / 0.5282 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3952, allocations: 0 / 0.5282 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007244/0.396, allocations: 160 kB / 0.5283 GB, free: 496 kB / 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.0001528/0.3961, allocations: 123.1 kB / 0.5285 GB, free: 360 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.398, allocations: 1.018 MB / 0.5294 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.398, allocations: 0 / 0.5294 GB, free: 15.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008837/0.3989, allocations: 0.6493 MB / 0.5301 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.3996, allocations: 119.4 kB / 0.5302 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/0.4024, allocations: 1.705 MB / 0.5319 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.4029, allocations: 381.8 kB / 0.5322 GB, free: 12.31 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003439/0.4032, allocations: 116.5 kB / 0.5323 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.4034, allocations: 36.5 kB / 0.5324 GB, free: 12.16 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4034, allocations: 0 / 0.5324 GB, free: 12.16 MB / 446.1 MB Notification: Performance of Templates: time 0.01549/0.4189, allocations: 7.705 MB / 0.5399 GB, free: 4.574 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile [Timeout 660] (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 & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins/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: 5.3377326019108295]