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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001969/0.001969, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.1 MB / 223.1 MB, free: 8.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001275/0.001275, allocations: 99.78 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1745/0.1745, allocations: 38.01 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 51.86 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3727, allocations: 55.24 MB / 477.1 MB, free: 9.898 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.01317/0.3859, allocations: 7.168 MB / 484.3 MB, free: 4.848 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005604/0.3916, allocations: 2.978 MB / 487.2 MB, free: 2.738 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.393, allocations: 47.91 kB / 487.3 MB, free: 2.719 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.3944, allocations: 310.3 kB / 487.6 MB, free: 2.551 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002045/0.3964, allocations: 0.5342 MB / 488.1 MB, free: 2.273 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008136/0.3973, allocations: 256.7 kB / 488.4 MB, free: 2.121 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002754/0.4, allocations: 1.631 MB / 490 MB, free: 1.547 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.4012, allocations: 0.6975 MB / 490.7 MB, free: 1.254 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008275/0.4021, allocations: 417 kB / 491.1 MB, free: 1.086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008932/0.403, allocations: 0.5389 MB / 491.7 MB, free: 0.8867 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.4031, allocations: 54.53 kB / 491.7 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00077/0.4039, allocations: 286.1 kB / 492 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003753/0.4043, allocations: 301.1 kB / 492.3 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004764/0.4048, allocations: 421.3 kB / 492.7 MB, free: 472 kB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001898/0.4067, allocations: 1.31 MB / 494 MB, free: 16 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.4067, allocations: 0 / 494 MB, free: 16 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4067, allocations: 0 / 494 MB, free: 16 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.4067, allocations: 0.8125 kB / 494 MB, free: 16 kB / 314.7 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.003254/0.41, allocations: 1.141 MB / 495.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.227e-05/0.4101, allocations: 17.22 kB / 495.2 MB, free: 15.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008977/0.411, allocations: 132.1 kB / 495.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001674/0.4127, allocations: 0.6592 MB / 496 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.4128, allocations: 82.58 kB / 496 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.413, allocations: 63.55 kB / 496.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/0.4148, allocations: 0.9624 MB / 497.1 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/0.4149, allocations: 10.2 kB / 497.1 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-05/0.415, allocations: 34.08 kB / 497.1 MB, free: 14.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000125/0.4151, allocations: 55.05 kB / 497.2 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.4165, allocations: 0.7824 MB / 497.9 MB, free: 13.65 MB / 330.7 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.005503/0.422, allocations: 3.852 MB / 0.49 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009188/0.4229, allocations: 0.5208 MB / 0.4905 GB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.4234, allocations: 235.1 kB / 0.4908 GB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.818e-05/0.4235, allocations: 8.516 kB / 0.4908 GB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.4235, allocations: 44.95 kB / 0.4908 GB, free: 9.867 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 3.496e-06/0.4236, allocations: 0 / 0.4908 GB, free: 9.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=55): time 0.01167/0.4352, allocations: 3.741 MB / 0.4945 GB, free: 7.414 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.4354, allocations: 112.7 kB / 0.4946 GB, free: 7.285 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008499/0.4362, allocations: 0.5249 MB / 0.4951 GB, free: 6.965 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.948e-05/0.4363, allocations: 36.45 kB / 0.4951 GB, free: 6.926 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.4366, allocations: 399 kB / 0.4955 GB, free: 6.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.4368, allocations: 194 kB / 0.4957 GB, free: 6.402 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.437, allocations: 126.9 kB / 0.4958 GB, free: 6.324 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.4373, allocations: 381.8 kB / 0.4962 GB, free: 5.957 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005413/0.4378, allocations: 289.2 kB / 0.4964 GB, free: 5.805 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007352/0.4386, allocations: 0.4981 MB / 0.4969 GB, free: 5.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.4399, allocations: 0.8551 MB / 0.4978 GB, free: 4.719 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.44, allocations: 2.75 kB / 0.4978 GB, free: 4.719 MB / 330.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003512/0.4435, allocations: 1.443 MB / 0.4992 GB, free: 3.797 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/0.4435, allocations: 11.86 kB / 0.4992 GB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.216e-05/0.4436, allocations: 7.281 kB / 0.4992 GB, free: 3.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001686/0.4453, allocations: 455.8 kB / 0.4996 GB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/0.4457, allocations: 115.8 kB / 0.4997 GB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009865/0.4556, allocations: 8.436 MB / 0.508 GB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008527/0.4565, allocations: 31.89 kB / 0.508 GB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.565e-05/0.4565, allocations: 28.11 kB / 0.508 GB, free: 10.35 MB / 346.7 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%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0006047/0.4572, allocations: 325.4 kB / 0.5084 GB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.4573, allocations: 59.34 kB / 0.5084 GB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.4603, allocations: 1.307 MB / 0.5097 GB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.4603, allocations: 4 kB / 0.5097 GB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4603, allocations: 4 kB / 0.5097 GB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4603, allocations: 7.984 kB / 0.5097 GB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004491/0.4648, allocations: 2.241 MB / 0.5119 GB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.4649, allocations: 4 kB / 0.5119 GB, free: 6.219 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003466/0.4652, allocations: 63.89 kB / 0.512 GB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.4666, allocations: 438.7 kB / 0.5124 GB, free: 5.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.532e-05/0.4667, allocations: 12 kB / 0.5124 GB, free: 5.707 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009038/0.4757, allocations: 8.169 MB / 0.5204 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/0.4758, allocations: 12 kB / 0.5204 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006161/0.4819, allocations: 3.536 MB / 0.5238 GB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/0.4823, allocations: 196.4 kB / 0.524 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.111e-05/0.4824, allocations: 19.98 kB / 0.524 GB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.4828, allocations: 23.92 kB / 0.5241 GB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.4831, allocations: 56.55 kB / 0.5241 GB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.4831, allocations: 16 kB / 0.5241 GB, free: 8.922 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004824/0.4836, allocations: 374.8 kB / 0.5245 GB, free: 8.559 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.033e-06/0.4836, allocations: 0 / 0.5245 GB, free: 8.559 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001468/0.4851, allocations: 295.9 kB / 0.5248 GB, free: 8.27 MB / 362.7 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 {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000324/0.4854, allocations: 134.4 kB / 0.5249 GB, free: 8.133 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.4878, allocations: 1.339 MB / 0.5262 GB, free: 6.742 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.4878, allocations: 4.188 kB / 0.5262 GB, free: 6.738 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001378/0.4892, allocations: 0.9781 MB / 0.5272 GB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.4902, allocations: 175.2 kB / 0.5273 GB, free: 5.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003591/0.4938, allocations: 2.359 MB / 0.5296 GB, free: 3.113 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008859/0.4947, allocations: 1.071 MB / 0.5307 GB, free: 2.016 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004763/0.4952, allocations: 113.7 kB / 0.5308 GB, free: 1.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.4953, allocations: 51.42 kB / 0.5308 GB, free: 1.852 MB / 362.7 MB Notification: Performance of SimCode: time 1.143e-06/0.4953, allocations: 0 / 0.5308 GB, free: 1.852 MB / 362.7 MB Notification: Performance of Templates: time 0.02819/0.5235, allocations: 14.93 MB / 0.5454 GB, free: 2.926 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches