Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.001423/0.001423, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001837/0.001837, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.571/1.571, 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.2102/0.2102, allocations: 38.56 MB / 352.5 MB, free: 12.29 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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") [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.00213/0.00213, allocations: 71.89 kB / 493 MB, free: 4.184 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3778, allocations: 62.46 MB / 0.5424 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009959/0.3878, allocations: 6.086 MB / 0.5484 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005111/0.3929, allocations: 2.514 MB / 0.5508 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005558/0.3934, allocations: 37.91 kB / 0.5509 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.3947, allocations: 321.9 kB / 0.5512 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001781/0.3964, allocations: 0.6042 MB / 0.5518 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008249/0.3973, allocations: 291 kB / 0.552 GB, free: 8.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002057/0.3993, allocations: 1.197 MB / 0.5532 GB, free: 8.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.4008, allocations: 0.7731 MB / 0.554 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001162/0.4019, allocations: 0.4931 MB / 0.5544 GB, free: 7.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001173/0.4031, allocations: 0.5299 MB / 0.555 GB, free: 7.078 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.4033, allocations: 87.22 kB / 0.555 GB, free: 7.078 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008002/0.4041, allocations: 353.6 kB / 0.5554 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004143/0.4045, allocations: 341.6 kB / 0.5557 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004984/0.405, allocations: 374.4 kB / 0.5561 GB, free: 6.234 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.4068, allocations: 1.378 MB / 0.5574 GB, free: 4.852 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.4069, allocations: 4 kB / 0.5574 GB, free: 4.848 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4069, allocations: 0 / 0.5574 GB, free: 4.848 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.318e-05/0.4069, allocations: 0 / 0.5574 GB, free: 4.848 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002551/0.4094, allocations: 1.092 MB / 0.5585 GB, free: 3.723 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.4095, allocations: 11.98 kB / 0.5585 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007457/0.4102, allocations: 144.3 kB / 0.5586 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001551/0.4118, allocations: 0.6265 MB / 0.5592 GB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.4119, allocations: 113.3 kB / 0.5593 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.412, allocations: 67.98 kB / 0.5594 GB, free: 2.727 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.4137, allocations: 0.957 MB / 0.5603 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.4137, allocations: 7.891 kB / 0.5604 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.577e-05/0.4138, allocations: 31.98 kB / 0.5604 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.4139, allocations: 57.28 kB / 0.5604 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/0.4154, allocations: 0.7819 MB / 0.5612 GB, free: 0.8438 MB / 398.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 preOpt removeSimpleEquations (simulation): time 0.006107/0.4215, allocations: 3.304 MB / 0.5644 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008667/0.4224, allocations: 415 kB / 0.5648 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004592/0.4228, allocations: 226.3 kB / 0.565 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.852e-05/0.4229, allocations: 11.86 kB / 0.5651 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.477e-05/0.4229, allocations: 34.56 kB / 0.5651 GB, free: 12.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.886e-06/0.4229, allocations: 4 kB / 0.5651 GB, free: 12.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01122/0.4341, allocations: 3.399 MB / 0.5684 GB, free: 9.195 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.363e-05/0.4342, allocations: 115.2 kB / 0.5685 GB, free: 9.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006954/0.4349, allocations: 469.7 kB / 0.569 GB, free: 8.594 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.951e-05/0.435, allocations: 41.73 kB / 0.569 GB, free: 8.547 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003629/0.4353, allocations: 407.9 kB / 0.5694 GB, free: 8.141 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.4356, allocations: 206.3 kB / 0.5696 GB, free: 7.938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002213/0.4358, allocations: 130.6 kB / 0.5697 GB, free: 7.805 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002211/0.436, allocations: 362.8 kB / 0.5701 GB, free: 7.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005555/0.4366, allocations: 281.8 kB / 0.5703 GB, free: 7.168 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007272/0.4373, allocations: 0.5033 MB / 0.5708 GB, free: 6.562 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.4387, allocations: 0.8559 MB / 0.5717 GB, free: 5.605 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.4387, allocations: 0 / 0.5717 GB, free: 5.605 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003542/0.4422, allocations: 1.299 MB / 0.5729 GB, free: 4.285 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.4422, allocations: 8 kB / 0.5729 GB, free: 4.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.4423, allocations: 11.98 kB / 0.5729 GB, free: 4.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001733/0.444, allocations: 471.2 kB / 0.5734 GB, free: 3.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.4445, allocations: 115.8 kB / 0.5735 GB, free: 3.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/0.4568, allocations: 8.638 MB / 0.5819 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006712/0.4575, allocations: 35.92 kB / 0.582 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/0.4575, allocations: 32 kB / 0.582 GB, free: 10.55 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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,3,100.0%), (3,8,88.9%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0005816/0.4581, allocations: 317.6 kB / 0.5823 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.4583, allocations: 59.61 kB / 0.5824 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003309/0.4616, allocations: 1.146 MB / 0.5835 GB, free: 9.004 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.4616, allocations: 4 kB / 0.5835 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4616, allocations: 4 kB / 0.5835 GB, free: 8.996 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.4616, allocations: 7.984 kB / 0.5835 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00469/0.4663, allocations: 1.885 MB / 0.5853 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.4663, allocations: 0 / 0.5853 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003515/0.4667, allocations: 59.89 kB / 0.5854 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.4682, allocations: 447.1 kB / 0.5858 GB, free: 6.543 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.4683, allocations: 8 kB / 0.5858 GB, free: 6.535 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/0.4797, allocations: 8.401 MB / 0.594 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4797, allocations: 0 / 0.594 GB, free: 13.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004303/0.484, allocations: 1.696 MB / 0.5957 GB, free: 11.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004294/0.4845, allocations: 115.6 kB / 0.5958 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.4846, allocations: 23.81 kB / 0.5958 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004079/0.485, allocations: 19.98 kB / 0.5958 GB, free: 11.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.4852, allocations: 56.39 kB / 0.5959 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-05/0.4852, allocations: 23.98 kB / 0.5959 GB, free: 11.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004499/0.4857, allocations: 315.1 kB / 0.5962 GB, free: 11.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4857, allocations: 0 / 0.5962 GB, free: 11.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0011/0.4868, allocations: 251.9 kB / 0.5965 GB, free: 11.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,8,88.9%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003721/0.4871, allocations: 142.7 kB / 0.5966 GB, free: 11.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.4898, allocations: 1.325 MB / 0.5979 GB, free: 9.676 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4898, allocations: 0 / 0.5979 GB, free: 9.676 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/0.4917, allocations: 0.9743 MB / 0.5988 GB, free: 8.645 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009802/0.4927, allocations: 142.9 kB / 0.599 GB, free: 8.512 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004111/0.4968, allocations: 1.67 MB / 0.6006 GB, free: 6.793 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009435/0.4978, allocations: 464.5 kB / 0.6011 GB, free: 6.312 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004878/0.4983, allocations: 101.2 kB / 0.6012 GB, free: 6.211 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.4984, allocations: 39.42 kB / 0.6012 GB, free: 6.172 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4984, allocations: 0 / 0.6012 GB, free: 6.172 MB / 446.1 MB Notification: Performance of Templates: time 0.0291/0.5275, allocations: 14.69 MB / 0.6155 GB, free: 7.625 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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: 6.0866985861212015]