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.001497/0.001497, allocations: 176.4 kB / 17.4 MB, free: 4.297 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.4 MB / 223.5 MB, free: 9.027 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.0008068/0.0008068, allocations: 90.34 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.18/0.18, allocations: 38.08 MB / 358.3 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003407, allocations: 12 kB / 425.3 MB, free: 37.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2688, allocations: 56.31 MB / 481.6 MB, free: 9.586 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1526/0.4214, allocations: 112.9 MB / 0.5805 GB, free: 5.352 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.4217, allocations: 99.81 kB / 0.5806 GB, free: 5.258 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07027/0.492, allocations: 25.84 MB / 0.6058 GB, free: 11.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4921, allocations: 0 / 0.6058 GB, free: 11.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.593e-05/0.4921, allocations: 16 kB / 0.6058 GB, free: 11.06 MB / 442.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.002492/0.4946, allocations: 1.021 MB / 0.6068 GB, free: 9.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.4947, allocations: 8.031 kB / 0.6069 GB, free: 9.973 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005699/0.4953, allocations: 107.9 kB / 0.607 GB, free: 9.867 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001648/0.4969, allocations: 0.7451 MB / 0.6077 GB, free: 9.082 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.4971, allocations: 88.23 kB / 0.6078 GB, free: 8.988 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.4973, allocations: 64.38 kB / 0.6078 GB, free: 8.926 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.4991, allocations: 0.9608 MB / 0.6088 GB, free: 7.914 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.074e-05/0.4991, allocations: 15.83 kB / 0.6088 GB, free: 7.898 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-05/0.4992, allocations: 28 kB / 0.6088 GB, free: 7.871 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/0.4993, allocations: 57.28 kB / 0.6089 GB, free: 7.812 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.5008, allocations: 0.7701 MB / 0.6096 GB, free: 7.043 MB / 442.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.005368/0.5061, allocations: 3.847 MB / 0.6134 GB, free: 2.984 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007944/0.507, allocations: 440.5 kB / 0.6138 GB, free: 2.527 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000501/0.5075, allocations: 273.6 kB / 0.6141 GB, free: 2.254 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.963e-05/0.5075, allocations: 19.84 kB / 0.6141 GB, free: 2.234 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.5076, allocations: 54.42 kB / 0.6141 GB, free: 2.172 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 2.585e-06/0.5076, allocations: 0 / 0.6141 GB, free: 2.172 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.01084/0.5184, allocations: 4.043 MB / 0.6181 GB, free: 13.92 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.12e-05/0.5186, allocations: 115.2 kB / 0.6182 GB, free: 13.78 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006619/0.5192, allocations: 0.4987 MB / 0.6187 GB, free: 13.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.833e-05/0.5193, allocations: 37.64 kB / 0.6187 GB, free: 13.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.5195, allocations: 395 kB / 0.6191 GB, free: 12.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.5197, allocations: 201.2 kB / 0.6193 GB, free: 12.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.307e-05/0.5198, allocations: 11.94 kB / 0.6193 GB, free: 12.63 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5199, allocations: 374.8 kB / 0.6196 GB, free: 12.25 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000456/0.5204, allocations: 281.8 kB / 0.6199 GB, free: 11.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006002/0.521, allocations: 0.5072 MB / 0.6204 GB, free: 11.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.5222, allocations: 0.8559 MB / 0.6212 GB, free: 10.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.5223, allocations: 4 kB / 0.6212 GB, free: 10.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003544/0.5258, allocations: 1.589 MB / 0.6228 GB, free: 8.738 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.5259, allocations: 8 kB / 0.6228 GB, free: 8.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.5259, allocations: 4 kB / 0.6228 GB, free: 8.727 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001698/0.5276, allocations: 0.4997 MB / 0.6233 GB, free: 8.211 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004584/0.5281, allocations: 111.8 kB / 0.6234 GB, free: 8.102 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01227/0.5403, allocations: 9.974 MB / 0.6331 GB, free: 13.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000806/0.5412, allocations: 47.83 kB / 0.6332 GB, free: 13.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.5413, allocations: 39.92 kB / 0.6332 GB, free: 13.36 MB / 474.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 (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.0008071/0.5422, allocations: 301.5 kB / 0.6335 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/0.5424, allocations: 67.25 kB / 0.6336 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003401/0.5458, allocations: 1.453 MB / 0.635 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.5458, allocations: 8 kB / 0.635 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.47e-05/0.5458, allocations: 4 kB / 0.635 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.5459, allocations: 3.984 kB / 0.635 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005058/0.5509, allocations: 2.374 MB / 0.6373 GB, free: 8.926 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.5509, allocations: 7.938 kB / 0.6373 GB, free: 8.918 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.5513, allocations: 51.95 kB / 0.6374 GB, free: 8.867 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001536/0.5528, allocations: 483.5 kB / 0.6379 GB, free: 8.383 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.942e-05/0.5529, allocations: 16 kB / 0.6379 GB, free: 8.367 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2542/0.8071, allocations: 9.723 MB / 0.6474 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.8071, allocations: 3.312 kB / 0.6474 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004087/0.8112, allocations: 2.007 MB / 0.6493 GB, free: 134.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004064/0.8117, allocations: 190.2 kB / 0.6495 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.8118, allocations: 15.86 kB / 0.6495 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004962/0.8123, allocations: 18.02 kB / 0.6495 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000272/0.8126, allocations: 65.78 kB / 0.6496 GB, free: 134.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-05/0.8127, allocations: 14.97 kB / 0.6496 GB, free: 134.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007161/0.8134, allocations: 350.1 kB / 0.6499 GB, free: 134.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8134, allocations: 3 kB / 0.65 GB, free: 134.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001548/0.815, allocations: 248.5 kB / 0.6502 GB, free: 134.4 MB / 474.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 (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.0002759/0.8153, allocations: 155.6 kB / 0.6503 GB, free: 134.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002467/0.8177, allocations: 1.484 MB / 0.6518 GB, free: 133.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.8178, allocations: 5.188 kB / 0.6518 GB, free: 133.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.8196, allocations: 1.12 MB / 0.6529 GB, free: 133.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/0.8207, allocations: 158.8 kB / 0.653 GB, free: 133.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003631/0.8244, allocations: 2.046 MB / 0.655 GB, free: 132.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.8255, allocations: 1.055 MB / 0.6561 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006001/0.8261, allocations: 103.8 kB / 0.6562 GB, free: 131.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.8262, allocations: 37.52 kB / 0.6562 GB, free: 131.6 MB / 474.7 MB Notification: Performance of SimCode: time 6.22e-07/0.8262, allocations: 0.9688 kB / 0.6562 GB, free: 131.6 MB / 474.7 MB Notification: Performance of Templates: time 0.03004/0.8563, allocations: 13.86 MB / 0.6697 GB, free: 131 MB / 474.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/jenkins1/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