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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 114.6 kB / 17.07 MB, free: 5.988 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.001602/0.001601, allocations: 195 kB / 18 MB, free: 5.074 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.524/1.524, allocations: 222.9 MB / 241.7 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.1878/0.1878, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001338, allocations: 67.89 kB / 457.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4212, allocations: 58.06 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006711/0.428, allocations: 5.709 MB / 0.5092 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007079/0.4351, allocations: 4.444 MB / 0.5135 GB, free: 408 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008631/0.436, allocations: 21.19 kB / 0.5136 GB, free: 400 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.013/0.449, allocations: 4.9 MB / 0.5183 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001649/0.4507, allocations: 445.8 kB / 0.5188 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.4518, allocations: 279.7 kB / 0.519 GB, free: 14.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003439/0.4553, allocations: 1.721 MB / 0.5207 GB, free: 13.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001164/0.4565, allocations: 0.716 MB / 0.5214 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.4575, allocations: 487.3 kB / 0.5219 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009037/0.4584, allocations: 0.5 MB / 0.5224 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000128/0.4586, allocations: 71.62 kB / 0.5224 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003876/0.4589, allocations: 143.4 kB / 0.5226 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004448/0.4594, allocations: 323.6 kB / 0.5229 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004759/0.4599, allocations: 403.2 kB / 0.5233 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001516/0.4614, allocations: 1.036 MB / 0.5243 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4614, allocations: 2.125 kB / 0.5243 GB, free: 12.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4614, allocations: 0 / 0.5243 GB, free: 12.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.4615, allocations: 0 / 0.5243 GB, free: 12.42 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.002039/0.4635, allocations: 1.052 MB / 0.5253 GB, free: 11.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4636, allocations: 13.42 kB / 0.5253 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001454/0.4637, allocations: 104.1 kB / 0.5254 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000461/0.4642, allocations: 105.1 kB / 0.5255 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.4656, allocations: 0.6202 MB / 0.5261 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.4657, allocations: 81.72 kB / 0.5262 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.4659, allocations: 60.61 kB / 0.5263 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.4673, allocations: 0.8185 MB / 0.5271 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.4674, allocations: 9.406 kB / 0.5271 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.285e-05/0.4675, allocations: 25.72 kB / 0.5271 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001347/0.4676, allocations: 54.47 kB / 0.5271 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009157/0.4685, allocations: 0.5908 MB / 0.5277 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0044/0.4729, allocations: 2.918 MB / 0.5306 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007958/0.4737, allocations: 434.8 kB / 0.531 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000356/0.4741, allocations: 220.5 kB / 0.5312 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/0.4742, allocations: 7.953 kB / 0.5312 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000528/0.4747, allocations: 345.6 kB / 0.5315 GB, free: 7.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 1.844e-06/0.4747, allocations: 0 / 0.5315 GB, free: 7.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003666/0.4784, allocations: 2.051 MB / 0.5335 GB, free: 5.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/0.4785, allocations: 142.9 kB / 0.5337 GB, free: 5.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005582/0.4791, allocations: 450.7 kB / 0.5341 GB, free: 5.414 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.035e-05/0.4791, allocations: 36.08 kB / 0.5341 GB, free: 5.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000252/0.4794, allocations: 339.6 kB / 0.5345 GB, free: 5.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.4795, allocations: 167 kB / 0.5346 GB, free: 4.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.4797, allocations: 113.1 kB / 0.5347 GB, free: 4.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4798, allocations: 368.4 kB / 0.5351 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.4802, allocations: 227.9 kB / 0.5353 GB, free: 4.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004702/0.4807, allocations: 394.4 kB / 0.5357 GB, free: 4.074 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002727/0.4834, allocations: 1.324 MB / 0.537 GB, free: 3.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.4834, allocations: 6.375 kB / 0.537 GB, free: 3.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001953/0.4854, allocations: 0.9686 MB / 0.5379 GB, free: 2.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.775e-05/0.4855, allocations: 37.08 kB / 0.538 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.4855, allocations: 4.938 kB / 0.538 GB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009828/0.4865, allocations: 312.1 kB / 0.5383 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.4875, allocations: 176.4 kB / 0.5384 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006608/0.4941, allocations: 5.294 MB / 0.5436 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000491/0.4946, allocations: 32.84 kB / 0.5436 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.136e-05/0.4947, allocations: 22.34 kB / 0.5436 GB, free: 13.96 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.0004548/0.4951, allocations: 304.3 kB / 0.5439 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-05/0.4952, allocations: 52.8 kB / 0.544 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.4964, allocations: 0.8107 MB / 0.5448 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.4964, allocations: 8.688 kB / 0.5448 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.4965, allocations: 1.125 kB / 0.5448 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.4965, allocations: 1.438 kB / 0.5448 GB, free: 13.07 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.00252/0.499, allocations: 1.672 MB / 0.5464 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.499, allocations: 4 kB / 0.5464 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/0.5004, allocations: 187.9 kB / 0.5466 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002446/0.5007, allocations: 86.41 kB / 0.5467 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-05/0.5007, allocations: 23.98 kB / 0.5467 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002847/0.5036, allocations: 4.249 MB / 0.5509 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.5036, allocations: 3.984 kB / 0.5509 GB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001445/0.5051, allocations: 1.128 MB / 0.552 GB, free: 5.449 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003072/0.5054, allocations: 180.6 kB / 0.5521 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.264e-05/0.5055, allocations: 16 kB / 0.5522 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.5057, allocations: 19.98 kB / 0.5522 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.5059, allocations: 27.95 kB / 0.5522 GB, free: 5.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.912e-05/0.5059, allocations: 20 kB / 0.5522 GB, free: 5.172 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004156/0.5063, allocations: 315.1 kB / 0.5525 GB, free: 4.863 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5064, allocations: 0 / 0.5525 GB, free: 4.863 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009386/0.5073, allocations: 168 kB / 0.5527 GB, free: 4.699 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.001785/0.5091, allocations: 1.672 MB / 0.5543 GB, free: 2.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001954/0.5111, allocations: 0.9841 MB / 0.5553 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5111, allocations: 0 / 0.5553 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007886/0.5119, allocations: 0.6477 MB / 0.5559 GB, free: 1.207 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008023/0.5127, allocations: 135.5 kB / 0.556 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009206/0.5219, allocations: 6.177 MB / 0.5621 GB, free: 10.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000692/0.5226, allocations: 0.976 MB / 0.563 GB, free: 9.656 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000414/0.5231, allocations: 116.7 kB / 0.5631 GB, free: 9.543 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/0.5234, allocations: 219.3 kB / 0.5633 GB, free: 9.328 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5234, allocations: 4 kB / 0.5633 GB, free: 9.324 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04257/0.566, allocations: 14.19 MB / 0.5772 GB, free: 11.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/13.01, allocations: 9.688 kB / 0.5772 GB, free: 11.32 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv","/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