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.001023/0.001023, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008656/0.0008656, allocations: 79.02 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1817/0.1817, allocations: 38 MB / 348 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.14e-05/2.142e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1306, allocations: 56.33 MB / 466.9 MB, free: 6.559 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3744/0.505, allocations: 112.1 MB / 0.5654 GB, free: 14.84 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.5054, allocations: 91.95 kB / 0.5655 GB, free: 14.75 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07063/0.576, allocations: 25.75 MB / 0.5906 GB, free: 4.684 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.576, allocations: 0 / 0.5906 GB, free: 4.684 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.256e-05/0.5761, allocations: 20 kB / 0.5906 GB, free: 4.664 MB / 427.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.001853/0.578, allocations: 0.9546 MB / 0.5916 GB, free: 3.66 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.578, allocations: 11.97 kB / 0.5916 GB, free: 3.648 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004321/0.5785, allocations: 103 kB / 0.5917 GB, free: 3.547 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001726/0.5802, allocations: 0.844 MB / 0.5925 GB, free: 2.66 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.497e-05/0.5803, allocations: 63.7 kB / 0.5926 GB, free: 2.59 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.436e-05/0.5804, allocations: 36 kB / 0.5926 GB, free: 2.555 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001107/0.5815, allocations: 0.6872 MB / 0.5933 GB, free: 1.867 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001288/0.5828, allocations: 0.8433 MB / 0.5941 GB, free: 0.9688 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/0.5829, allocations: 0 / 0.5941 GB, free: 0.9688 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.5829, allocations: 7.938 kB / 0.5941 GB, free: 0.9609 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001014/0.583, allocations: 57.28 kB / 0.5942 GB, free: 0.9062 MB / 427.1 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.004674/0.5877, allocations: 3.626 MB / 0.5977 GB, free: 13.09 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005959/0.5883, allocations: 399.5 kB / 0.5981 GB, free: 12.68 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004172/0.5888, allocations: 255.1 kB / 0.5983 GB, free: 12.42 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.851e-05/0.5888, allocations: 7.984 kB / 0.5983 GB, free: 12.41 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.5888, allocations: 42.36 kB / 0.5984 GB, free: 12.36 MB / 443.1 MB Notification: Performance of pre-optimization done (n=37): time 2.675e-06/0.5889, allocations: 0 / 0.5984 GB, free: 12.36 MB / 443.1 MB Notification: Performance of matching and sorting (n=55): time 0.00783/0.5967, allocations: 3.216 MB / 0.6015 GB, free: 8.973 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.5968, allocations: 111.3 kB / 0.6016 GB, free: 8.84 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004569/0.5973, allocations: 369.1 kB / 0.602 GB, free: 8.477 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 5.526e-05/0.5973, allocations: 25.7 kB / 0.602 GB, free: 8.445 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.5976, allocations: 402.7 kB / 0.6024 GB, free: 8.043 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.5977, allocations: 181.3 kB / 0.6025 GB, free: 7.863 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.5978, allocations: 0 / 0.6025 GB, free: 7.863 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.5979, allocations: 370.8 kB / 0.6029 GB, free: 7.492 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.5983, allocations: 257.5 kB / 0.6031 GB, free: 7.242 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005136/0.5988, allocations: 488.6 kB / 0.6036 GB, free: 6.66 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005189/0.5994, allocations: 352.9 kB / 0.6039 GB, free: 6.316 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.5994, allocations: 8 kB / 0.604 GB, free: 6.309 MB / 443.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003178/0.6026, allocations: 1.471 MB / 0.6054 GB, free: 4.758 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.6026, allocations: 8 kB / 0.6054 GB, free: 4.75 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.6026, allocations: 8 kB / 0.6054 GB, free: 4.742 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/0.6043, allocations: 492.1 kB / 0.6059 GB, free: 4.246 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004505/0.6048, allocations: 107.8 kB / 0.606 GB, free: 4.141 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/0.6153, allocations: 9.536 MB / 0.6153 GB, free: 10.01 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006102/0.616, allocations: 23.95 kB / 0.6153 GB, free: 9.988 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.678e-05/0.6161, allocations: 28 kB / 0.6153 GB, free: 9.961 MB / 459.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: machine.motor.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] machine.inverter.Vloss:DUMMY_STATE(unit = "V" nominal = 1000.0 protected = true ) type: Real machine.inverter.vPhasor[2]:DUMMY_STATE() "desired {abs(v), phase(v)}" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (60): * Single equations (assignments): 55 * 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 {3 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002524/0.6163, allocations: 142 kB / 0.6155 GB, free: 9.816 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.6165, allocations: 59.34 kB / 0.6155 GB, free: 9.758 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.6196, allocations: 1.359 MB / 0.6169 GB, free: 8.316 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/0.6197, allocations: 8 kB / 0.6169 GB, free: 8.309 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.6197, allocations: 4 kB / 0.6169 GB, free: 8.305 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.6197, allocations: 3.984 kB / 0.6169 GB, free: 8.301 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005305/0.625, allocations: 2.188 MB / 0.619 GB, free: 5.992 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.625, allocations: 0 / 0.619 GB, free: 5.992 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003612/0.6254, allocations: 63.98 kB / 0.6191 GB, free: 5.93 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/0.627, allocations: 475.1 kB / 0.6195 GB, free: 5.453 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.854e-05/0.6271, allocations: 4 kB / 0.6195 GB, free: 5.449 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/0.6375, allocations: 9.294 MB / 0.6286 GB, free: 11.57 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/0.6376, allocations: 112 / 0.6286 GB, free: 11.57 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003751/0.6413, allocations: 1.959 MB / 0.6305 GB, free: 9.48 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003498/0.6417, allocations: 184.3 kB / 0.6307 GB, free: 9.281 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.173e-05/0.6418, allocations: 12.05 kB / 0.6307 GB, free: 9.27 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003735/0.6422, allocations: 11.94 kB / 0.6307 GB, free: 9.258 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/0.6424, allocations: 60.42 kB / 0.6308 GB, free: 9.199 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.284e-05/0.6425, allocations: 20 kB / 0.6308 GB, free: 9.18 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0003669/0.6428, allocations: 278.9 kB / 0.6311 GB, free: 8.91 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6428, allocations: 0 / 0.6311 GB, free: 8.91 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001156/0.644, allocations: 212 kB / 0.6313 GB, free: 8.703 MB / 475.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 () * 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.0002874/0.6443, allocations: 156.9 kB / 0.6314 GB, free: 8.539 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.6468, allocations: 1.381 MB / 0.6328 GB, free: 7.109 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.6468, allocations: 0 / 0.6328 GB, free: 7.109 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00179/0.6486, allocations: 1.034 MB / 0.6338 GB, free: 6.023 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008047/0.6494, allocations: 118.2 kB / 0.6339 GB, free: 5.906 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.6518, allocations: 1.245 MB / 0.6351 GB, free: 4.613 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007388/0.6526, allocations: 1.075 MB / 0.6362 GB, free: 3.508 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0003998/0.653, allocations: 97.17 kB / 0.6362 GB, free: 3.414 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.355e-05/0.6531, allocations: 35.44 kB / 0.6363 GB, free: 3.379 MB / 475.1 MB Notification: Performance of SimCode: time 6.21e-07/0.6531, allocations: 0 / 0.6363 GB, free: 3.379 MB / 475.1 MB Notification: Performance of Templates: time 0.2298/0.8829, allocations: 11.9 MB / 0.6479 GB, free: 137.3 MB / 475.1 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