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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 114.9 kB / 17.74 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 188.4 kB / 18.67 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1768/0.1768, allocations: 38.05 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.91 kB / 458.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3567, allocations: 58.07 MB / 0.5048 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007475/0.3643, allocations: 5.719 MB / 0.5104 GB, free: 3.766 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006572/0.3709, allocations: 4.432 MB / 0.5147 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006474/0.3716, allocations: 16.53 kB / 0.5147 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01083/0.3825, allocations: 4.894 MB / 0.5195 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.3842, allocations: 437.3 kB / 0.5199 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009707/0.3852, allocations: 276.8 kB / 0.5202 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002867/0.3881, allocations: 1.714 MB / 0.5218 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.3892, allocations: 0.7431 MB / 0.5226 GB, free: 13.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000838/0.3901, allocations: 478.3 kB / 0.523 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007746/0.3908, allocations: 0.4993 MB / 0.5235 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.391, allocations: 72.34 kB / 0.5236 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003754/0.3913, allocations: 135.8 kB / 0.5237 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003582/0.3917, allocations: 336.8 kB / 0.524 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004088/0.3921, allocations: 397.4 kB / 0.5244 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.3935, allocations: 1.025 MB / 0.5254 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3935, allocations: 1.125 kB / 0.5254 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3935, allocations: 0 / 0.5254 GB, free: 12.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.3935, allocations: 0 / 0.5254 GB, free: 12.74 MB / 398.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.00203/0.3956, allocations: 1.037 MB / 0.5264 GB, free: 11.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3956, allocations: 12.52 kB / 0.5264 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004695/0.3961, allocations: 104.4 kB / 0.5265 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.3972, allocations: 0.6176 MB / 0.5271 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.905e-05/0.3973, allocations: 81.39 kB / 0.5272 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001305/0.3975, allocations: 68.62 kB / 0.5273 GB, free: 11.45 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.3988, allocations: 0.8071 MB / 0.5281 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.3989, allocations: 6.312 kB / 0.5281 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.924e-05/0.399, allocations: 26.23 kB / 0.5281 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001442/0.3991, allocations: 53.31 kB / 0.5281 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009191/0.4, allocations: 0.5877 MB / 0.5287 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004063/0.4041, allocations: 2.921 MB / 0.5316 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008164/0.4049, allocations: 430.7 kB / 0.532 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003336/0.4053, allocations: 232 kB / 0.5322 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.41e-05/0.4053, allocations: 8.422 kB / 0.5322 GB, free: 7.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005086/0.4059, allocations: 342.3 kB / 0.5325 GB, free: 7.684 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.305e-06/0.4059, allocations: 3.938 kB / 0.5325 GB, free: 7.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003317/0.4092, allocations: 2.025 MB / 0.5345 GB, free: 6.172 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.214e-05/0.4093, allocations: 138.4 kB / 0.5346 GB, free: 6.012 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005336/0.4098, allocations: 455.3 kB / 0.5351 GB, free: 5.734 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.854e-05/0.4099, allocations: 44.33 kB / 0.5351 GB, free: 5.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.4102, allocations: 333.3 kB / 0.5354 GB, free: 5.391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.4103, allocations: 155.9 kB / 0.5356 GB, free: 5.258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.4105, allocations: 112.8 kB / 0.5357 GB, free: 5.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.4107, allocations: 364.2 kB / 0.536 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003696/0.4111, allocations: 235.4 kB / 0.5363 GB, free: 4.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004681/0.4116, allocations: 390.1 kB / 0.5366 GB, free: 4.402 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002729/0.4143, allocations: 1.332 MB / 0.5379 GB, free: 3.504 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.4143, allocations: 1.25 kB / 0.5379 GB, free: 3.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001817/0.4162, allocations: 0.966 MB / 0.5389 GB, free: 2.953 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.369e-05/0.4162, allocations: 33.64 kB / 0.5389 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.4162, allocations: 3.625 kB / 0.5389 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009158/0.4171, allocations: 314.2 kB / 0.5392 GB, free: 2.766 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009842/0.4181, allocations: 171.8 kB / 0.5394 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006598/0.4248, allocations: 5.287 MB / 0.5445 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005019/0.4253, allocations: 26.05 kB / 0.5446 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.568e-05/0.4254, allocations: 27.58 kB / 0.5446 GB, free: 14.3 MB / 414.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.0004982/0.4259, allocations: 298.6 kB / 0.5449 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.988e-05/0.426, allocations: 57.41 kB / 0.5449 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.4272, allocations: 0.8046 MB / 0.5457 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.4272, allocations: 8 kB / 0.5457 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.4272, allocations: 5.484 kB / 0.5457 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.4272, allocations: 5.266 kB / 0.5457 GB, free: 13.42 MB / 414.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.002272/0.4295, allocations: 1.668 MB / 0.5474 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4295, allocations: 4.094 kB / 0.5474 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.4308, allocations: 187.8 kB / 0.5476 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/0.431, allocations: 78.52 kB / 0.5476 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.1e-05/0.4311, allocations: 19.94 kB / 0.5476 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003069/0.4341, allocations: 4.26 MB / 0.5518 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4342, allocations: 160 / 0.5518 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.4358, allocations: 1.131 MB / 0.5529 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/0.4361, allocations: 172.4 kB / 0.5531 GB, free: 5.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.552e-05/0.4362, allocations: 15.98 kB / 0.5531 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.4364, allocations: 19.98 kB / 0.5531 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.4365, allocations: 27.91 kB / 0.5531 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.4366, allocations: 19.98 kB / 0.5532 GB, free: 5.348 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004094/0.437, allocations: 315.1 kB / 0.5535 GB, free: 5.039 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.437, allocations: 0 / 0.5535 GB, free: 5.039 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008343/0.4378, allocations: 164 kB / 0.5536 GB, free: 4.879 MB / 414.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.000205/0.4381, allocations: 119.2 kB / 0.5537 GB, free: 4.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.44, allocations: 0.9844 MB / 0.5547 GB, free: 3.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.44, allocations: 0 / 0.5547 GB, free: 3.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007971/0.4408, allocations: 0.641 MB / 0.5553 GB, free: 3.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007675/0.4416, allocations: 143.2 kB / 0.5555 GB, free: 2.902 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00273/0.4443, allocations: 1.701 MB / 0.5571 GB, free: 1.152 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.4449, allocations: 0.9877 MB / 0.5581 GB, free: 140 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.4451, allocations: 43.42 kB / 0.5581 GB, free: 96 kB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4451, allocations: 3.938 kB / 0.5581 GB, free: 92 kB / 414.1 MB Notification: Performance of Templates: time 0.01762/0.4627, allocations: 14.7 MB / 0.5725 GB, free: 1.406 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (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) 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) Reference file matches