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.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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009295/0.0009294, allocations: 88.66 kB / 16.65 MB, free: 6.535 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.001115/0.001115, allocations: 175.4 kB / 17.56 MB, free: 6.184 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.186/1.186, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1547/0.1547, allocations: 38.09 MB / 330.8 MB, free: 8.535 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002596/0.0002596, allocations: 8 kB / 400.7 MB, free: 34.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08472/0.08499, allocations: 59.17 MB / 459.9 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.006871/0.09189, allocations: 6.723 MB / 466.6 MB, free: 292 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00396/0.09588, allocations: 2.891 MB / 469.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005449/0.09645, allocations: 51.62 kB / 469.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006045/0.09707, allocations: 214.8 kB / 469.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.09816, allocations: 0.5369 MB / 470.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005227/0.09869, allocations: 263.7 kB / 470.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.1001, allocations: 1.617 MB / 472.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008818/0.101, allocations: 0.8329 MB / 473 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003935/0.1014, allocations: 390.3 kB / 473.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000558/0.1019, allocations: 0.506 MB / 473.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.564e-05/0.102, allocations: 40 kB / 473.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003687/0.1024, allocations: 275.5 kB / 474.2 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002387/0.1026, allocations: 291.1 kB / 474.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003177/0.103, allocations: 415.7 kB / 474.9 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009425/0.1039, allocations: 1.289 MB / 476.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.1039, allocations: 0 / 476.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1039, allocations: 4 kB / 476.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1039, allocations: 0 / 476.2 MB, free: 6.648 MB / 350.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.001624/0.1056, allocations: 0.989 MB / 477.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.1056, allocations: 11.97 kB / 477.2 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005796/0.1062, allocations: 135.8 kB / 477.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008791/0.1071, allocations: 0.6592 MB / 478 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.983e-05/0.1072, allocations: 83.69 kB / 478.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.1073, allocations: 75.92 kB / 478.1 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1086, allocations: 0.9608 MB / 479.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.1086, allocations: 3.906 kB / 479.1 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.528e-05/0.1087, allocations: 31.98 kB / 479.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.409e-05/0.1088, allocations: 53.28 kB / 479.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.1099, allocations: 0.7858 MB / 480 MB, free: 2.723 MB / 350.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.004187/0.1141, allocations: 3.871 MB / 483.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006974/0.1148, allocations: 0.5206 MB / 484.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/0.1152, allocations: 242.5 kB / 484.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.1153, allocations: 4 kB / 484.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.1153, allocations: 38.56 kB / 484.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.522e-06/0.1153, allocations: 4 kB / 484.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.009607/0.1249, allocations: 3.789 MB / 488.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.125, allocations: 119.2 kB / 488.5 MB, free: 9.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005321/0.1255, allocations: 0.526 MB / 489.1 MB, free: 9.133 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.1256, allocations: 37.7 kB / 489.1 MB, free: 9.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.1258, allocations: 395.1 kB / 489.5 MB, free: 8.695 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.1259, allocations: 193.1 kB / 489.7 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.171e-05/0.126, allocations: 65.69 kB / 489.8 MB, free: 8.434 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1261, allocations: 366.8 kB / 490.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004227/0.1266, allocations: 289.8 kB / 490.4 MB, free: 7.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.1271, allocations: 0.4994 MB / 490.9 MB, free: 7.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.1282, allocations: 0.8598 MB / 491.8 MB, free: 6.215 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1282, allocations: 4 kB / 491.8 MB, free: 6.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00294/0.1311, allocations: 1.457 MB / 493.2 MB, free: 4.699 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1312, allocations: 8 kB / 493.2 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.1312, allocations: 8 kB / 493.2 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001385/0.1326, allocations: 451.3 kB / 493.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.133, allocations: 127.8 kB / 493.8 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008636/0.1416, allocations: 8.457 MB / 0.4905 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004552/0.1421, allocations: 28.11 kB / 0.4905 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.937e-05/0.1421, allocations: 36 kB / 0.4905 GB, free: 11.04 MB / 382.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%), (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.0003558/0.1425, allocations: 310.4 kB / 0.4908 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.1426, allocations: 59.25 kB / 0.4909 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002801/0.1454, allocations: 1.317 MB / 0.4922 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1454, allocations: 8 kB / 0.4922 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1454, allocations: 4 kB / 0.4922 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1455, allocations: 0 / 0.4922 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/0.1493, allocations: 2.249 MB / 0.4944 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1493, allocations: 0 / 0.4944 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.1496, allocations: 68.14 kB / 0.4944 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.1509, allocations: 442.9 kB / 0.4949 GB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.1509, allocations: 15.98 kB / 0.4949 GB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1712/0.3222, allocations: 8.187 MB / 0.5029 GB, free: 52.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3222, allocations: 1.938 kB / 0.5029 GB, free: 52.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003485/0.3257, allocations: 1.852 MB / 0.5047 GB, free: 52.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002423/0.3259, allocations: 197.1 kB / 0.5049 GB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.515e-05/0.326, allocations: 12.44 kB / 0.5049 GB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003804/0.3264, allocations: 22.98 kB / 0.5049 GB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/0.3266, allocations: 54.55 kB / 0.505 GB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.519e-05/0.3266, allocations: 16.33 kB / 0.505 GB, free: 52.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004375/0.3271, allocations: 374 kB / 0.5053 GB, free: 52.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3271, allocations: 7.25 kB / 0.5053 GB, free: 52.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009033/0.328, allocations: 253.9 kB / 0.5056 GB, free: 52.15 MB / 382.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 {(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.0002461/0.3282, allocations: 136.3 kB / 0.5057 GB, free: 52.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00177/0.33, allocations: 1.348 MB / 0.507 GB, free: 51.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.33, allocations: 0 / 0.507 GB, free: 51.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.3311, allocations: 0.9683 MB / 0.508 GB, free: 51.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009835/0.3321, allocations: 173.7 kB / 0.5081 GB, free: 51.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.3344, allocations: 2.073 MB / 0.5102 GB, free: 49.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005156/0.3349, allocations: 1.049 MB / 0.5112 GB, free: 49.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003486/0.3353, allocations: 117.6 kB / 0.5113 GB, free: 49.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.3354, allocations: 43.44 kB / 0.5113 GB, free: 49.18 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3354, allocations: 0 / 0.5113 GB, free: 49.18 MB / 382.1 MB Notification: Performance of Templates: time 0.0183/0.3537, allocations: 14.2 MB / 0.5252 GB, free: 44.36 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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