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.001106/0.001106, allocations: 175.6 kB / 13.63 MB, free: 1.684 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.523/1.523, allocations: 205.2 MB / 219.4 MB, free: 14.19 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.0008063/0.0008064, allocations: 86.7 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1719/0.1719, allocations: 37.98 MB / 353.5 MB, free: 1.742 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.966e-05, allocations: 4 kB / 417.7 MB, free: 29.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09569/0.09574, allocations: 56.32 MB / 474.1 MB, free: 4.789 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3793/0.4751, allocations: 112.7 MB / 0.573 GB, free: 6.172 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4754, allocations: 94.19 kB / 0.5731 GB, free: 6.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07146/0.5468, allocations: 26.01 MB / 0.5985 GB, free: 15.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.5469, allocations: 3.984 kB / 0.5985 GB, free: 15.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.317e-05/0.5469, allocations: 20 kB / 0.5985 GB, free: 15.88 MB / 410.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.001904/0.5488, allocations: 0.953 MB / 0.5995 GB, free: 14.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.5489, allocations: 8.031 kB / 0.5995 GB, free: 14.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004247/0.5493, allocations: 110.9 kB / 0.5996 GB, free: 14.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001877/0.5512, allocations: 0.8458 MB / 0.6004 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.572e-05/0.5513, allocations: 88.38 kB / 0.6005 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.5515, allocations: 62.38 kB / 0.6006 GB, free: 14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.5528, allocations: 0.9461 MB / 0.6015 GB, free: 13.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.5529, allocations: 4 kB / 0.6015 GB, free: 13.28 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.536e-05/0.553, allocations: 24.81 kB / 0.6015 GB, free: 13.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.804e-05/0.5531, allocations: 52.91 kB / 0.6016 GB, free: 13.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.5542, allocations: 0.7424 MB / 0.6023 GB, free: 12.75 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.004663/0.5588, allocations: 3.848 MB / 0.606 GB, free: 9.383 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006382/0.5595, allocations: 418.8 kB / 0.6064 GB, free: 9.074 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004269/0.5599, allocations: 273.7 kB / 0.6067 GB, free: 8.879 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.951e-05/0.56, allocations: 11.84 kB / 0.6067 GB, free: 8.867 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.56, allocations: 42.31 kB / 0.6068 GB, free: 8.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.56, allocations: 0 / 0.6068 GB, free: 8.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=55): time 0.009461/0.5695, allocations: 3.586 MB / 0.6103 GB, free: 5.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.5696, allocations: 111.2 kB / 0.6104 GB, free: 5.613 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005429/0.5701, allocations: 449.8 kB / 0.6108 GB, free: 5.262 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/0.5702, allocations: 37.45 kB / 0.6108 GB, free: 5.227 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.5705, allocations: 395.4 kB / 0.6112 GB, free: 4.926 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001632/0.5706, allocations: 196.8 kB / 0.6114 GB, free: 4.758 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.5707, allocations: 17.53 kB / 0.6114 GB, free: 4.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.5709, allocations: 363.5 kB / 0.6118 GB, free: 4.41 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.5713, allocations: 275.5 kB / 0.612 GB, free: 4.242 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005509/0.5719, allocations: 0.4952 MB / 0.6125 GB, free: 3.766 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005212/0.5724, allocations: 360.3 kB / 0.6128 GB, free: 3.539 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.5724, allocations: 0 / 0.6128 GB, free: 3.539 MB / 410.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003327/0.5757, allocations: 1.566 MB / 0.6144 GB, free: 2.234 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.5758, allocations: 8 kB / 0.6144 GB, free: 2.227 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.5758, allocations: 8 kB / 0.6144 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.5775, allocations: 0.4892 MB / 0.6149 GB, free: 1.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.5779, allocations: 106.9 kB / 0.615 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01223/0.5901, allocations: 9.971 MB / 0.6247 GB, free: 7.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005844/0.5908, allocations: 27.98 kB / 0.6247 GB, free: 7.539 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.635e-05/0.5909, allocations: 32 kB / 0.6248 GB, free: 7.508 MB / 426.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001639/0.591, allocations: 152.8 kB / 0.6249 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.5912, allocations: 59.25 kB / 0.625 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003199/0.5944, allocations: 1.43 MB / 0.6264 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.5944, allocations: 8 kB / 0.6264 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.5944, allocations: 7.984 kB / 0.6264 GB, free: 5.773 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.5944, allocations: 4 kB / 0.6264 GB, free: 5.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004428/0.5988, allocations: 2.347 MB / 0.6287 GB, free: 3.281 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.85e-06/0.5989, allocations: 4.094 kB / 0.6287 GB, free: 3.277 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003075/0.5992, allocations: 51.91 kB / 0.6287 GB, free: 3.227 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001545/0.6007, allocations: 491.9 kB / 0.6292 GB, free: 2.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.214e-05/0.6008, allocations: 12 kB / 0.6292 GB, free: 2.719 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01014/0.6109, allocations: 9.703 MB / 0.6387 GB, free: 8.344 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.611, allocations: 3.938 kB / 0.6387 GB, free: 8.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00374/0.6147, allocations: 2.028 MB / 0.6407 GB, free: 6.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003596/0.6151, allocations: 188.4 kB / 0.6408 GB, free: 5.977 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.633e-05/0.6152, allocations: 19.94 kB / 0.6409 GB, free: 5.957 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003716/0.6156, allocations: 19.98 kB / 0.6409 GB, free: 5.938 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.6158, allocations: 52.48 kB / 0.6409 GB, free: 5.887 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.853e-05/0.6158, allocations: 16 kB / 0.6409 GB, free: 5.871 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004567/0.6163, allocations: 349.5 kB / 0.6413 GB, free: 5.535 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6163, allocations: 0 / 0.6413 GB, free: 5.535 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001112/0.6174, allocations: 244 kB / 0.6415 GB, free: 5.297 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002625/0.6177, allocations: 155 kB / 0.6417 GB, free: 5.137 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002397/0.6201, allocations: 1.46 MB / 0.6431 GB, free: 3.605 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.6201, allocations: 1.438 kB / 0.6431 GB, free: 3.605 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001696/0.6218, allocations: 1.098 MB / 0.6442 GB, free: 2.445 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007603/0.6226, allocations: 158.1 kB / 0.6443 GB, free: 2.293 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.6248, allocations: 1.295 MB / 0.6456 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007021/0.6255, allocations: 1.072 MB / 0.6466 GB, free: 15.85 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003635/0.6258, allocations: 101.7 kB / 0.6467 GB, free: 15.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.429e-05/0.6259, allocations: 39.42 kB / 0.6468 GB, free: 15.71 MB / 458.7 MB Notification: Performance of SimCode: time 3.31e-07/0.6259, allocations: 0 / 0.6468 GB, free: 15.71 MB / 458.7 MB Notification: Performance of Templates: time 0.02213/0.6481, allocations: 13.89 MB / 0.6603 GB, free: 1.82 MB / 458.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/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